[asterisk-commits] russell: branch 1.4 r82240 - /branches/1.4/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 11 09:34:12 CDT 2007
Author: russell
Date: Tue Sep 11 09:34:12 2007
New Revision: 82240
URL: http://svn.digium.com/view/asterisk?view=rev&rev=82240
Log:
Add a couple more missing unrefs of queue member objects
Modified:
branches/1.4/apps/app_queue.c
Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=82240&r1=82239&r2=82240
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Tue Sep 11 09:34:12 2007
@@ -3773,6 +3773,7 @@
buflen += strlen(m->interface);
/* Safeguard against overflow (negative length) */
if (buflen >= len - 2) {
+ ao2_ref(m, -1);
ast_log(LOG_WARNING, "Truncating list\n");
break;
}
@@ -4520,6 +4521,7 @@
ao2_ref(m, -1);
return tmp;
}
+ ao2_ref(m, -1);
}
ast_mutex_unlock(&q->lock);
}
More information about the asterisk-commits
mailing list