提交 39f960a2 authored 作者: Travis Cross's avatar Travis Cross

Avoid leaking memory on mod_voicemail unload

上级 886a730a
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论