소스 검색

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.
Noriko Hosoi 14 년 전
부모
커밋
11c8bf1ada
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      ldap/servers/slapd/back-ldbm/cache.c

+ 0 - 3
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 */