[asterisk-commits] coreyfarrell: branch 1.8 r424786 - /branches/1.8/main/astobj2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 7 16:28:37 CDT 2014


Author: coreyfarrell
Date: Tue Oct  7 16:28:33 2014
New Revision: 424786

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424786
Log:
astobj2: Correct REF_DEBUG false leak report

When ao2_callback is run with OBJ_MULTIPLE and not OBJ_NODATA
it allocates a temporary container in a way that does not
record REF_DEBUG log entries.  This changes that container
to correctly record unref's when the container is freed. 

ASTERISK-24390 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4047/

Modified:
    branches/1.8/main/astobj2.c

Modified: branches/1.8/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/astobj2.c?view=diff&rev=424786&r1=424785&r2=424786
==============================================================================
--- branches/1.8/main/astobj2.c (original)
+++ branches/1.8/main/astobj2.c Tue Oct  7 16:28:33 2014
@@ -623,7 +623,7 @@
 		 * is destroyed, the container will be automatically
 		 * destroyed as well.
 		 */
-		if (!(multi_container = __ao2_container_alloc(1, NULL, NULL))) {
+		if (!(multi_container = ao2_container_alloc(1, NULL, NULL))) {
 			return NULL;
 		}
 		if (!(multi_iterator = ast_calloc(1, sizeof(*multi_iterator)))) {




More information about the asterisk-commits mailing list