ldap/servers/slapd/back-ldbm/cache.c | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit 11c8bf1adaf925aedef76df4095abe2d47fe0223
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Thu Apr 21 10:24:39 2011 -0700
Bug 697027 - 3 - minor memory leaks found by Valgrind + TET
https://bugzilla.redhat.com/show_bug.cgi?id=697027
Description: Previous commit fe9b6a6bab32353f55a6ce2123f7df6b72a9a5a7
failed to remove unnecessary 3 slapi_counter_destroy calls.
diff --git a/ldap/servers/slapd/back-ldbm/cache.c b/ldap/servers/slapd/back-ldbm/cache.c
index 95fa638..ff9921a 100644
--- a/ldap/servers/slapd/back-ldbm/cache.c
+++ b/ldap/servers/slapd/back-ldbm/cache.c
@@ -652,9 +652,6 @@ 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 */