mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-07 16:09:54 +00:00
Avoid leaking memory on unload of mod_dptools
Automated leak detectors find leaked memory on shutdown. Cleaning up after ourselves on shutdown eliminates noise from these reports.
This commit is contained in:
parent
021c98fa74
commit
1fa1df2512
@ -5571,6 +5571,10 @@ SWITCH_STANDARD_API(page_api_function)
|
|||||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_dptools_shutdown)
|
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_dptools_shutdown)
|
||||||
{
|
{
|
||||||
switch_event_unbind_callback(pickup_pres_event_handler);
|
switch_event_unbind_callback(pickup_pres_event_handler);
|
||||||
|
switch_mutex_destroy(globals.pickup_mutex);
|
||||||
|
switch_core_hash_destroy(&globals.pickup_hash);
|
||||||
|
switch_mutex_destroy(globals.mutex_mutex);
|
||||||
|
switch_core_hash_destroy(&globals.mutex_hash);
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user