From 748b7dea3ca8e0080b78c4068af1ef05845e1448 Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 16 Apr 2014 09:27:34 -0700 Subject: [PATCH] Get rid of a small memory leak when the configs are reloaded in mod_enum --- src/mod/applications/mod_enum/mod_enum.c | 2 ++ 1 file changed, 2 insertions(+) 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;