summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-01-10 14:27:57 -0500
committerCorey Farrell <git@cfware.com>2016-01-10 13:32:48 -0600
commit1d3a1167fca6b6e9d55f355b485ff4ad19ba23e8 (patch)
treea313b8e85d7dcd00a936a1494c26ec807fadfb2c /res
parent573b37c6581b54cfe80dfd9a956c29c33f11f4bd (diff)
res_calendar: Cleanup scheduler context at unload.
ASTERISK-25679 #close Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f
Diffstat (limited to 'res')
-rw-r--r--res/res_calendar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_calendar.c b/res/res_calendar.c
index 5b911ca5b..264165470 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -1853,6 +1853,8 @@ static int unload_module(void)
ast_mutex_unlock(&refreshlock);
pthread_join(refresh_thread, NULL);
+ ast_sched_context_destroy(sched);
+
AST_LIST_LOCK(&techs);
AST_LIST_TRAVERSE_SAFE_BEGIN(&techs, tech, list) {
ast_unload_resource(tech->module, 0);