[asterisk-commits] bebuild: tag 1.8.19.0-rc3 r377321 - in /tags/1.8.19.0-rc3: ./ channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 6 08:16:13 CST 2012
Author: bebuild
Date: Thu Dec 6 08:16:10 2012
New Revision: 377321
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377321
Log:
Merge r376868 for 1.8.19.0-rc3
Removed:
tags/1.8.19.0-rc3/asterisk-1.8.19.0-rc1-summary.html
tags/1.8.19.0-rc3/asterisk-1.8.19.0-rc1-summary.txt
tags/1.8.19.0-rc3/asterisk-1.8.19.0-rc2-summary.html
tags/1.8.19.0-rc3/asterisk-1.8.19.0-rc2-summary.txt
Modified:
tags/1.8.19.0-rc3/ (props changed)
tags/1.8.19.0-rc3/.version
tags/1.8.19.0-rc3/ChangeLog
tags/1.8.19.0-rc3/channels/chan_local.c
Propchange: tags/1.8.19.0-rc3/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Dec 6 08:16:10 2012
@@ -1,1 +1,1 @@
-/branches/1.8:377257
+/branches/1.8:376868,377257
Modified: tags/1.8.19.0-rc3/.version
URL: http://svnview.digium.com/svn/asterisk/tags/1.8.19.0-rc3/.version?view=diff&rev=377321&r1=377320&r2=377321
==============================================================================
--- tags/1.8.19.0-rc3/.version (original)
+++ tags/1.8.19.0-rc3/.version Thu Dec 6 08:16:10 2012
@@ -1,1 +1,1 @@
-1.8.19.0-rc2
+1.8.19.0-rc3
Modified: tags/1.8.19.0-rc3/ChangeLog
URL: http://svnview.digium.com/svn/asterisk/tags/1.8.19.0-rc3/ChangeLog?view=diff&rev=377321&r1=377320&r2=377321
==============================================================================
--- tags/1.8.19.0-rc3/ChangeLog (original)
+++ tags/1.8.19.0-rc3/ChangeLog Thu Dec 6 08:16:10 2012
@@ -1,3 +1,14 @@
+2012-12-06 Asterisk Development Team <asteriskteam at digium.com>
+
+ * Asterisk 1.8.19.0-rc3 Released.
+
+ * chan_local: Fix local_pvt ref leak in local_devicestate().
+
+ Regression introduced by ASTERISK-20390 fix.
+
+ (closes issue ASTERISK-20769)
+ Reported by: rmudgett
+
2012-12-05 Asterisk Development Team <asteriskteam at digium.com>
* Asterisk 1.8.19.0-rc2 Released.
Modified: tags/1.8.19.0-rc3/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/tags/1.8.19.0-rc3/channels/chan_local.c?view=diff&rev=377321&r1=377320&r2=377321
==============================================================================
--- tags/1.8.19.0-rc3/channels/chan_local.c (original)
+++ tags/1.8.19.0-rc3/channels/chan_local.c Thu Dec 6 08:16:10 2012
@@ -308,15 +308,20 @@
res = AST_DEVICE_NOT_INUSE;
it = ao2_iterator_init(locals, 0);
- while ((lp = ao2_iterator_next(&it)) && (res == AST_DEVICE_NOT_INUSE)) {
- if (!strcmp(exten, lp->exten) && !strcmp(context, lp->context) && lp->owner) {
- ao2_lock(lp);
- if (ast_test_flag(lp, LOCAL_LAUNCHED_PBX)) {
- res = AST_DEVICE_INUSE;
- }
- ao2_unlock(lp);
- }
- ao2_ref(lp, -1);
+ for (; (lp = ao2_iterator_next(&it)); ao2_ref(lp, -1)) {
+ int is_inuse;
+
+ ao2_lock(lp);
+ is_inuse = !strcmp(exten, lp->exten)
+ && !strcmp(context, lp->context)
+ && lp->owner
+ && ast_test_flag(lp, LOCAL_LAUNCHED_PBX);
+ ao2_unlock(lp);
+ if (is_inuse) {
+ res = AST_DEVICE_INUSE;
+ ao2_ref(lp, -1);
+ break;
+ }
}
ao2_iterator_destroy(&it);
More information about the asterisk-commits
mailing list