From: William King Date: Wed, 16 Apr 2014 16:27:34 +0000 (-0700) Subject: Get rid of a small memory leak when the configs are reloaded in mod_enum X-Git-Tag: v1.5.12~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=748b7dea3ca8e0080b78c4068af1ef05845e1448;p=thirdparty%2Ffreeswitch.git Get rid of a small memory leak when the configs are reloaded in mod_enum --- diff --git a/src/mod/applications/mod_enum/mod_enum.c b/src/mod/applications/mod_enum/mod_enum.c index 60cbad7184..3e1ae683fc 100644 --- a/src/mod/applications/mod_enum/mod_enum.c +++ b/src/mod/applications/mod_enum/mod_enum.c @@ -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;