From 4206edd50cf33bc727cf9a3e330621c50807dd91 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Tue, 28 May 2002 19:26:26 +0000 Subject: [PATCH] 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 --- modules/experimental/util_ldap_cache_mgr.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.50.1