Call cf_section_parse_free before calling the module detach
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:01:56 +0000 (14:01 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:01:56 +0000 (14:01 -0500)
src/main/modules.c

index f28f041..964b6c8 100644 (file)
@@ -424,6 +424,8 @@ static void module_instance_free(void *data)
 
        module_instance_free_old(this->cs, this, time(NULL) + 100);
 
+       cf_section_parse_free(this->cs, this->insthandle);
+
        if (this->entry->module->detach) {
                (this->entry->module->detach)(this->insthandle);
        }