From: Bradley Nicholes Date: Tue, 28 May 2002 19:26:26 +0000 (+0000) Subject: Need to also free the cache node itself when destroying the cache. The X-Git-Tag: 2.0.37~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4206edd50cf33bc727cf9a3e330621c50807dd91;p=apache Need to also free the cache node itself when destroying the cache. The eliminates a memory leak on shutdown git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95321 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/util_ldap_cache_mgr.c b/modules/experimental/util_ldap_cache_mgr.c index 89064a0aed..f2a65d9132 100644 --- a/modules/experimental/util_ldap_cache_mgr.c +++ b/modules/experimental/util_ldap_cache_mgr.c @@ -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)