]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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 f28f0419cf4955ff3b3af125f51aada1db39c61b..964b6c844a9a61b0e25e456d3a0b7fb815b361e5 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);
        }