[Asterisk-code-review] res calendar: Cleanup scheduler context at unload. (asterisk[11])

Corey Farrell asteriskteam at digium.com
Sun Jan 10 13:32:24 CST 2016


Corey Farrell has uploaded a new change for review.

  https://gerrit.asterisk.org/1978

Change subject: res_calendar: Cleanup scheduler context at unload.
......................................................................

res_calendar: Cleanup scheduler context at unload.

ASTERISK-25679 #close

Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f
---
M res/res_calendar.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/78/1978/1

diff --git a/res/res_calendar.c b/res/res_calendar.c
index e418425..17b005c 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -1827,6 +1827,8 @@
 	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);

-- 
To view, visit https://gerrit.asterisk.org/1978
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Corey Farrell <git at cfware.com>



More information about the asterisk-code-review mailing list