From 9433fc73f04520ce7f309fef6bcc4052146d34fe Mon Sep 17 00:00:00 2001 From: Nathan Kinder Date: Fri, 17 Sep 2010 14:14:53 -0700 Subject: Bug 630092 - (cov#12068) Resource leak in certmap code The ldapu_propval_list_free() function was freeing the nodes in the list, but not the list itself. We need to free the list itself after all of the nodes have been freed. --- lib/ldaputil/certmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ldaputil/certmap.c b/lib/ldaputil/certmap.c index 9c6b2bad..f3da425e 100644 --- a/lib/ldaputil/certmap.c +++ b/lib/ldaputil/certmap.c @@ -1472,6 +1472,7 @@ void ldapu_propval_list_free (void *propval_list) { LDAPUPropValList_t *list = (LDAPUPropValList_t *)propval_list; ldapu_list_free(list, ldapu_propval_free); + free(list); } int ldapu_certmap_init (const char *config_file, -- cgit