[asterisk-commits] coreyfarrell: trunk r432851 - /trunk/main/logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 12 21:10:18 CDT 2015


Author: coreyfarrell
Date: Thu Mar 12 21:10:17 2015
New Revision: 432851

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432851
Log:
Logger: Fix MALLOC_DEBUG build error.

Revision 432834 introduced a build error when MALLOC_DEBUG
is used.  Switch callid threadstorage to simple
AST_THREADSTORAGE since we no longer need custom cleanup.

Reported by: Corey Farrell

Modified:
    trunk/main/logger.c

Modified: trunk/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/logger.c?view=diff&rev=432851&r1=432850&r2=432851
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Thu Mar 12 21:10:17 2015
@@ -85,7 +85,7 @@
 static volatile int next_unique_callid = 1; /* Used to assign unique call_ids to calls */
 static int display_callids;
 
-AST_THREADSTORAGE_CUSTOM(unique_callid, NULL, ast_free);
+AST_THREADSTORAGE(unique_callid);
 
 static enum rotatestrategy {
 	NONE = 0,                /* Do not rotate log files at all, instead rely on external mechanisms */




More information about the asterisk-commits mailing list