Call cf_section_parse_free before freeing sub-modules
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:02:43 +0000 (14:02 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:02:43 +0000 (14:02 -0500)
src/modules/rlm_eap/mem.c

index b0314c7..e0fdc37 100644 (file)
@@ -251,6 +251,8 @@ done:
 
 void eaptype_free(EAP_TYPES *i)
 {
+       cf_section_parse_free(i->cs, i->type_data);
+
        if (i->type->detach) (i->type->detach)(i->type_data);
        i->type_data = NULL;
        if (i->handle) lt_dlclose(i->handle);