summaryrefslogtreecommitdiff
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 349cb4ecd..4c46a0f58 100644
--- a/main/threadstorage.c
+++ b/main/threadstorage.c
@@ -258,7 +258,7 @@ void threadstorage_init(void)
{
pthread_mutex_init(&threadstoragelock, NULL);
ast_cli_register_multiple(cli, ARRAY_LEN(cli));
- ast_register_atexit(threadstorage_shutdown);
+ ast_register_cleanup(threadstorage_shutdown);
}
#endif /* !defined(DEBUG_THREADLOCALS) */