You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2002/05/28 21:26:26 UTC

cvs commit: httpd-ldap/ldap-cache util_ldap_cache_mgr.c

bnicholes    02/05/28 12:26:26

  Modified:    ldap-cache util_ldap_cache_mgr.c
  Log:
  Need to also free the cache node itself when destroying the cache.  The
  eliminates a memory leak on shutdown
  
  Revision  Changes    Path
  1.3       +1 -0      httpd-ldap/ldap-cache/util_ldap_cache_mgr.c
  
  Index: util_ldap_cache_mgr.c
  ===================================================================
  RCS file: /home/cvs/httpd-ldap/ldap-cache/util_ldap_cache_mgr.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- util_ldap_cache_mgr.c	26 Apr 2002 21:54:38 -0000	1.2
  +++ util_ldap_cache_mgr.c	28 May 2002 19:26:26 -0000	1.3
  @@ -351,6 +351,7 @@
           }
       }
       util_ald_free(cache->nodes);
  +    util_ald_free(cache);
   }
   
   void *util_ald_cache_fetch(util_ald_cache_t *cache, void *payload)