diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-16 14:19:39 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-16 14:19:39 +0000 |
commit | a426cfa3304ef64c91fca20b194f4ed3268ce146 (patch) | |
tree | bae5d5ca590dfb12186b89d40e187adef076bb0e /main/threadstorage.c | |
parent | 678f918643bb11d90bcc41d212f6a293d665f64b (diff) |
Fix memory allocation issue in threadstorage.
(closes issue #10995)
Reported by: snuffy
Patches:
new-patch.diff uploaded by snuffy (license 35)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85818 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/threadstorage.c')
-rw-r--r-- | main/threadstorage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/threadstorage.c b/main/threadstorage.c index b4d38c045..b43568e08 100644 --- a/main/threadstorage.c +++ b/main/threadstorage.c @@ -56,7 +56,7 @@ void __ast_threadstorage_object_add(void *key, size_t len, const char *file, con { struct tls_object *to; - if (!(to = ast_calloc(sizeof(*to), 1))) + if (!(to = ast_calloc(1, sizeof(*to)))) return; to->key = key; |