]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/web_cache: delete perfcounters on destruction
authorMarcel Lauhoff <marcel.lauhoff@clyso.com>
Tue, 3 Mar 2026 20:24:26 +0000 (21:24 +0100)
committerMarcel Lauhoff <marcel.lauhoff@clyso.com>
Mon, 1 Jun 2026 17:04:12 +0000 (19:04 +0200)
Signed-off-by: Marcel Lauhoff <marcel.lauhoff@clyso.com>
On-behalf-of: SAP marcel.lauhoff@sap.com

src/common/web_cache.h

index 35e102a936e43089522591f125e2ac6ee34c9289..f123e6b9746ecd042c674e25754c407319a0c96f 100644 (file)
@@ -325,6 +325,7 @@ template <typename Key, typename Value>
 WebCache<Key, Value>::~WebCache() {
   if (_cct != nullptr && _perf != nullptr) {
     _cct->get_perfcounters_collection()->remove(_perf);
+    delete _perf;
   }
 }