From: Travis Cross Date: Sat, 12 Apr 2014 06:57:59 +0000 (+0000) Subject: Avoid leaking memory on mod_cdr_sqlite unload X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e9fd1fb83b9ad0deb65ba690aa9e2eea09d584e;p=thirdparty%2Ffreeswitch.git Avoid leaking memory on mod_cdr_sqlite unload --- diff --git a/src/mod/event_handlers/mod_cdr_sqlite/mod_cdr_sqlite.c b/src/mod/event_handlers/mod_cdr_sqlite/mod_cdr_sqlite.c index c1b973bb00..092a070d5d 100644 --- a/src/mod/event_handlers/mod_cdr_sqlite/mod_cdr_sqlite.c +++ b/src/mod/event_handlers/mod_cdr_sqlite/mod_cdr_sqlite.c @@ -297,6 +297,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_cdr_sqlite_shutdown) { globals.shutdown = 1; switch_core_remove_state_handler(&state_handlers); + switch_core_hash_destroy(&globals.template_hash); return SWITCH_STATUS_SUCCESS; }