Get rid of a small memory leak when the configs are reloaded in mod_enum

This commit is contained in:
William King 2014-04-16 09:27:34 -07:00
parent a4a792488b
commit 748b7dea3c
1 changed files with 2 additions and 0 deletions

View 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;