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

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


Corey Farrell has uploaded a new change for review.

  https://gerrit.asterisk.org/1979

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/79/1979/1

diff --git a/res/res_calendar.c b/res/res_calendar.c
index 5b911ca..2641654 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -1853,6 +1853,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/1979
To unsubscribe, visit https://gerrit.asterisk.org/settings

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



More information about the asterisk-code-review mailing list