diff options
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 b481343df..26f3e1c19 100644 --- a/main/threadstorage.c +++ b/main/threadstorage.c @@ -85,7 +85,7 @@ void __ast_threadstorage_object_remove(void *key) AST_LIST_TRAVERSE_SAFE_END; AST_RWLIST_UNLOCK(&tls_objects); if (to) - free(to); + ast_free(to); } void __ast_threadstorage_object_replace(void *key_old, void *key_new, size_t len) |