]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Get rid of a small memory leak when the configs are reloaded in mod_enum
authorWilliam King <william.king@quentustech.com>
Wed, 16 Apr 2014 16:27:34 +0000 (09:27 -0700)
committerWilliam King <william.king@quentustech.com>
Wed, 16 Apr 2014 16:27:34 +0000 (09:27 -0700)
src/mod/applications/mod_enum/mod_enum.c

index 60cbad718428e7ce7541c3e91c892e6da07205f3..3e1ae683fc715b1d41a6b92b6d99e45df7e5b9c7 100644 (file)
@@ -796,6 +796,8 @@ static void do_load(void)
                switch_core_destroy_memory_pool(&globals.pool);
        }
 
+       switch_safe_free(globals.root);
+       switch_safe_free(globals.isn_root);
        memset(&globals, 0, sizeof(globals));
        switch_core_new_memory_pool(&globals.pool);
        globals.timeout = 10;