forked from Mirrors/freeswitch
Get rid of a small memory leak when the configs are reloaded in mod_enum
This commit is contained in:
parent
a4a792488b
commit
748b7dea3c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user