[asterisk-commits] jrose: branch 11 r388578 - in /branches/11: ./ main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 13 14:25:01 CDT 2013


Author: jrose
Date: Mon May 13 14:24:59 2013
New Revision: 388578

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388578
Log:
pbx: Fix lack of cleanup on macrolock and context_table

(closes issue ASTERISK-21723)
Reported by: Corey Farrell
Patches:
    core-pbx-cleanup.patch uploaded by Correy Farrell (license 5909)
........

Merged revisions 388532 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/main/pbx.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/pbx.c?view=diff&rev=388578&r1=388577&r2=388578
==============================================================================
--- branches/11/main/pbx.c (original)
+++ branches/11/main/pbx.c Mon May 13 14:24:59 2013
@@ -10503,6 +10503,7 @@
 	}
 	tmp->root = NULL;
 	ast_rwlock_destroy(&tmp->lock);
+	ast_mutex_destroy(&tmp->macrolock);
 	ast_free(tmp);
 }
 
@@ -12173,6 +12174,10 @@
 		ao2_ref(statecbs, -1);
 		statecbs = NULL;
 	}
+	if (contexts_table) {
+		ast_hashtab_destroy(contexts_table, NULL);
+	}
+	pbx_builtin_clear_globals();
 }
 
 int ast_pbx_init(void)




More information about the asterisk-commits mailing list