[asterisk-commits] jrose: branch 1.6.2 r330505 - /branches/1.6.2/main/features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 1 16:19:52 CDT 2011
Author: jrose
Date: Mon Aug 1 16:19:47 2011
New Revision: 330505
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=330505
Log:
fixes reference leak pointed out by rmudgett in https://reviewboard.asterisk.org/r/1337/
Modified:
branches/1.6.2/main/features.c
Modified: branches/1.6.2/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/features.c?view=diff&rev=330505&r1=330504&r2=330505
==============================================================================
--- branches/1.6.2/main/features.c (original)
+++ branches/1.6.2/main/features.c Mon Aug 1 16:19:47 2011
@@ -4253,8 +4253,8 @@
while ((p = ao2_iterator_next(&iter))) {
if (p != default_parkinglot) {
ao2_unlink(parkinglots, p);
- ao2_ref(p,-1);
- }
+ }
+ ao2_ref(p, -1);
}
ao2_iterator_destroy(&iter);
}
More information about the asterisk-commits
mailing list