aboutsummaryrefslogtreecommitdiffstats
path: root/main/threadstorage.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/threadstorage.c')
-rw-r--r--main/threadstorage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/threadstorage.c b/main/threadstorage.c
index 01bab356b..a03f3c98b 100644
--- a/main/threadstorage.c
+++ b/main/threadstorage.c
@@ -78,7 +78,7 @@ void __ast_threadstorage_object_remove(void *key)
AST_RWLIST_WRLOCK(&tls_objects);
AST_LIST_TRAVERSE_SAFE_BEGIN(&tls_objects, to, entry) {
if (to->key == key) {
- AST_LIST_REMOVE_CURRENT(&tls_objects, entry);
+ AST_LIST_REMOVE_CURRENT(entry);
break;
}
}