[svn-commits] russell: trunk r185261 - /trunk/apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 31 09:53:57 CDT 2009


Author: russell
Date: Tue Mar 31 09:53:45 2009
New Revision: 185261

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=185261
Log:
Don't free() an astobj2 object.

(closes issue #14672)
Reported by: makoto

Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_queue.c?view=diff&rev=185261&r1=185260&r2=185261
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Mar 31 09:53:45 2009
@@ -1630,7 +1630,7 @@
 
 	if ((q = ao2_alloc(sizeof(*q), destroy_queue))) {
 		if (ast_string_field_init(q, 64)) {
-			free(q);
+			ao2_ref(q, -1);
 			return NULL;
 		}
 		ast_string_field_set(q, name, queuename);




More information about the svn-commits mailing list