Avoid leaking memory on mod_cdr_sqlite unload

This commit is contained in:
Travis Cross 2014-04-12 06:57:59 +00:00
parent 39f960a212
commit 2dba7dd367
1 changed files with 1 additions and 0 deletions

View 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;
}