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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
96f4079dac
commit
384aea6257
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void __ast_threadstorage_object_replace(void *key_old, void *key_new, size_t len
|
||||||
* \endcode
|
* \endcode
|
||||||
*/
|
*/
|
||||||
#define AST_THREADSTORAGE(name) \
|
#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
|
* \brief Define a thread storage variable, with custom initialization and cleanup
|
||||||
|
|
Loading…
Reference in a new issue