mod_freetdm: Fix several leaks on module shutdown

This commit is contained in:
Moises Silva committed 2014-07-13 00:35:48 -04:00
1 parent b29a41bb1b
commit e742522597
5 files changed
+81 -28

No files matched your search

+7
View File
@@ -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;