diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c index 97ce053bf..ed7af4200 100644 --- a/newlib/libc/stdlib/__atexit.c +++ b/newlib/libc/stdlib/__atexit.c @@ -133,7 +133,7 @@ __register_exitproc (int type, if (args == NULL) { #ifndef __SINGLE_THREAD__ - __lock_release(__atexit_recursive_mutex); + __lock_release_recursive(__atexit_recursive_mutex); #endif return -1; }