]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Avoid leaking memory on mod_cdr_sqlite unload
authorTravis Cross <tc@traviscross.com>
Sat, 12 Apr 2014 06:57:59 +0000 (06:57 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 19 Apr 2014 02:56:23 +0000 (02:56 +0000)
src/mod/event_handlers/mod_cdr_sqlite/mod_cdr_sqlite.c

index c1b973bb005c5d3d94664de6f11bc96a88eb26e9..092a070d5dea97f743df4be5cc7bb4333093dac5 100644 (file)
@@ -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;
 }