https://bugzilla.redhat.com/show_bug.cgi?id=697027 [Case 3] Description: Adding slapi_counter_destroy to destroy counters cache->c_cursize, c_hits, and c_tries used in the entry cache.
@@ -642,6 +642,9 @@ static void erase_cache(struct cache *cache, int type)
#ifdef UUIDCACHE_ON
slapi_ch_free((void **)&cache->c_uuidtable);
#endif
+ slapi_counter_destroy(&cache->c_cursize);
+ slapi_counter_destroy(&cache->c_hits);
+ slapi_counter_destroy(&cache->c_tries);
}
/* to be used on shutdown or when destroying a backend instance */