[asterisk-commits] russell: trunk r82793 - /trunk/include/asterisk/threadstorage.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 18 11:14:15 CDT 2007


Author: russell
Date: Tue Sep 18 11:14:14 2007
New Revision: 82793

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82793
Log:
Make sure that libpthread doesn't try to call free() directly when MALLOC_DEBUG
is enabled.  If it does, Asterisk will crash as the address isn't the real
beginning of the allocation.

Modified:
    trunk/include/asterisk/threadstorage.h

Modified: trunk/include/asterisk/threadstorage.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/threadstorage.h?view=diff&rev=82793&r1=82792&r2=82793
==============================================================================
--- trunk/include/asterisk/threadstorage.h (original)
+++ trunk/include/asterisk/threadstorage.h Tue Sep 18 11:14:14 2007
@@ -87,7 +87,7 @@
  * \endcode
  */
 #define AST_THREADSTORAGE(name) \
-	AST_THREADSTORAGE_CUSTOM(name, NULL, ast_free) 
+	AST_THREADSTORAGE_CUSTOM(name, NULL, ast_free_ptr) 
 
 /*!
  * \brief Define a thread storage variable, with custom initialization and cleanup




More information about the asterisk-commits mailing list