From 711e49c46af4b6d7d96949d991082b2df3c8409a Mon Sep 17 00:00:00 2001 From: William King Date: Tue, 8 Apr 2014 11:18:23 -0700 Subject: [PATCH] Don't leak these 4 hash tables when mod_fifo is reloaded --- src/mod/applications/mod_fifo/mod_fifo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index cea09ac0e8..e9bf558257 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -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);