فهرست منبع

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.
Nathan Kinder 15 سال پیش
والد
کامیت
9433fc73f0
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      lib/ldaputil/certmap.c

+ 1 - 0
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,