mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
Don't leak these 4 hash tables when mod_fifo is reloaded
This commit is contained in:
parent
aae1954c07
commit
711e49c46a
@ -4870,6 +4870,10 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_fifo_shutdown)
|
||||
}
|
||||
|
||||
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));
|
||||
switch_mutex_unlock(mutex);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user