]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Don't leak these 4 hash tables when mod_fifo is reloaded
authorWilliam King <william.king@quentustech.com>
Tue, 8 Apr 2014 18:18:23 +0000 (11:18 -0700)
committerWilliam King <william.king@quentustech.com>
Tue, 8 Apr 2014 18:18:23 +0000 (11:18 -0700)
src/mod/applications/mod_fifo/mod_fifo.c

index cea09ac0e8ebf1311f17b397d509e9094abbdfc7..e9bf558257982573316d32f9f08323e97db01f61 100644 (file)
@@ -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);