From: Corey Farrell Date: Sun, 10 Jan 2016 19:27:57 +0000 (-0500) Subject: res_calendar: Cleanup scheduler context at unload. X-Git-Tag: 11.22.0-rc1~42^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=006ce3679cf7f84c7ae52a5dcf3dbf113d127d26;p=thirdparty%2Fasterisk.git res_calendar: Cleanup scheduler context at unload. ASTERISK-25679 #close Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f --- diff --git a/res/res_calendar.c b/res/res_calendar.c index e4184254d2..17b005c659 100644 --- a/res/res_calendar.c +++ b/res/res_calendar.c @@ -1827,6 +1827,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);