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

Joshua Colp asteriskteam at digium.com
Mon Jan 11 14:35:51 CST 2016


Joshua Colp has submitted this change and it was merged.

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(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved



diff --git a/res/res_calendar.c b/res/res_calendar.c
index 1a9878b..6f6f711 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/1980
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list