Don't leak these 4 hash tables when mod_fifo is reloaded

This commit is contained in:
William King 2014-04-08 11:18:23 -07:00
parent aae1954c07
commit 711e49c46a

View File

@ -4870,6 +4870,10 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_fifo_shutdown)
} }
switch_core_hash_destroy(&globals.fifo_hash); switch_core_hash_destroy(&globals.fifo_hash);
switch_core_hash_destroy(&globals.caller_orig_hash);
switch_core_hash_destroy(&globals.consumer_orig_hash);
switch_core_hash_destroy(&globals.bridge_hash);
switch_core_hash_destroy(&globals.use_hash);
memset(&globals, 0, sizeof(globals)); memset(&globals, 0, sizeof(globals));
switch_mutex_unlock(mutex); switch_mutex_unlock(mutex);