Avoid leaking memory on mod_voicemail unload

This commit is contained in:
Travis Cross 2014-04-12 06:48:36 +00:00
parent 886a730ae8
commit 39f960a212
1 changed files with 2 additions and 0 deletions

View File

@ -6280,7 +6280,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_voicemail_shutdown)
switch_core_destroy_memory_pool(&profile->pool);
profile = NULL;
}
switch_core_hash_destroy(&globals.profile_hash);
switch_mutex_unlock(globals.mutex);
switch_mutex_destroy(globals.mutex);
return SWITCH_STATUS_SUCCESS;
}