mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 18:30:01 +00:00
Avoid leaking memory on mod_voicemail unload
This commit is contained in:
parent
bb41207cc7
commit
a455a8694c
@ -6273,7 +6273,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_voicemail_shutdown)
|
|||||||
switch_core_destroy_memory_pool(&profile->pool);
|
switch_core_destroy_memory_pool(&profile->pool);
|
||||||
profile = NULL;
|
profile = NULL;
|
||||||
}
|
}
|
||||||
|
switch_core_hash_destroy(&globals.profile_hash);
|
||||||
switch_mutex_unlock(globals.mutex);
|
switch_mutex_unlock(globals.mutex);
|
||||||
|
switch_mutex_destroy(globals.mutex);
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user