From 099950f5ca6a14c65c39ac9a545687e9fc472c80 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 12 Mar 2024 19:18:44 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index afc1ec91..3aacecc9 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -32,7 +32,7 @@ class PolicyCache { public: - typedef boost::concurrent_flat_map Map; + typedef boost::concurrent_flat_map Map; public: PolicyCache(unsigned const max_size_ = 256) @@ -43,6 +43,11 @@ public: strpool_init(&_strpool,&config); } + ~PolicyCache() + { + strpool_term(&_strpool); + } + public: void insert(std::string const &key_,