mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
mod_freetdm: Fix several leaks on module shutdown
This commit is contained in:
@@ -166,6 +166,13 @@ FT_DECLARE(ftdm_status_t) ftdm_sched_global_init()
|
||||
return FTDM_FAIL;
|
||||
}
|
||||
|
||||
FT_DECLARE(ftdm_status_t) ftdm_sched_global_destroy()
|
||||
{
|
||||
ftdm_mutex_destroy(&sched_globals.mutex);
|
||||
memset(&sched_globals, 0, sizeof(sched_globals));
|
||||
return FTDM_SUCCESS;
|
||||
}
|
||||
|
||||
FT_DECLARE(ftdm_status_t) ftdm_sched_free_run(ftdm_sched_t *sched)
|
||||
{
|
||||
ftdm_status_t status = FTDM_FAIL;
|
||||
|
Reference in New Issue
Block a user