From a868a381f0f905da3782fb185f4d81504dd76898 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Sun, 10 Jan 2016 14:27:57 -0500 Subject: res_calendar: Cleanup scheduler context at unload. ASTERISK-25679 #close Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f --- res/res_calendar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'res') diff --git a/res/res_calendar.c b/res/res_calendar.c index 1a9878b32..6f6f711b3 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); -- cgit v1.2.3