From 286625cf9103de59993c2275691c4feb12a29885 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 3 Jan 2012 19:13:57 +0000 Subject: [PATCH] 2012-01-03 Viachaslau Kulakouski * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock. --- newlib/ChangeLog | 8 ++++++-- newlib/libc/stdlib/__atexit.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b54839482..550cfdda8 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,7 +1,11 @@ +2012-01-03 Viachaslau Kulakouski + + * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock. + 2011-12-20 Aleksandr Platonov - * fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double free in - fclose. Enhance comment. + * libc/stdio/fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double + free in fclose. Enhance comment. 2011-12-19 Jeff Johnston diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c index a26d2eccc..4687d0023 100644 --- a/newlib/libc/stdlib/__atexit.c +++ b/newlib/libc/stdlib/__atexit.c @@ -74,7 +74,7 @@ _DEFUN (__register_exitproc, if (args == NULL) { #ifndef __SINGLE_THREAD__ - __lock_release(lock); + __lock_release(__atexit_lock); #endif return -1; }