]> granicus.if.org Git - apache/commitdiff
Need to also free the cache node itself when destroying the cache. The
authorBradley Nicholes <bnicholes@apache.org>
Tue, 28 May 2002 19:26:26 +0000 (19:26 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 28 May 2002 19:26:26 +0000 (19:26 +0000)
eliminates a memory leak on shutdown

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95321 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/util_ldap_cache_mgr.c

index 89064a0aed8504c3bde11952d2dad2331f693d0a..f2a65d91326504684ab8c07c22ae71626dafe86b 100644 (file)
@@ -351,6 +351,7 @@ void util_ald_destroy_cache(util_ald_cache_t *cache)
         }
     }
     util_ald_free(cache->nodes);
+    util_ald_free(cache);
 }
 
 void *util_ald_cache_fetch(util_ald_cache_t *cache, void *payload)