summaryrefslogtreecommitdiff
path: root/include/asterisk/threadstorage.h
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-09-18 16:14:14 +0000
committerRussell Bryant <russell@russellbryant.com>2007-09-18 16:14:14 +0000
commit384aea62574c99c1c446ff3ae322b45ba1620d1d (patch)
treeaf561e02c61dcaf108044a51e04c3736b18320f8 /include/asterisk/threadstorage.h
parent96f4079dacffdfd911331e36a68fd814f7a72004 (diff)
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
Diffstat (limited to 'include/asterisk/threadstorage.h')
-rw-r--r--include/asterisk/threadstorage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/threadstorage.h b/include/asterisk/threadstorage.h
index 91e88dc7f..a9f075ba2 100644
--- a/include/asterisk/threadstorage.h
+++ b/include/asterisk/threadstorage.h
@@ -87,7 +87,7 @@ void __ast_threadstorage_object_replace(void *key_old, void *key_new, size_t len
* \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