]> 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:05:34 +0000 (14:05 -0500)
src/main/modules.c

index 378a0eb1af6122047bd012e3e880a3510aa1ab25..c1a54aa2763ad1d2f2f1ce31c9719f35f6a1eee7 100644 (file)
@@ -379,6 +379,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);
        }