[uClibc-cvs] uClibc/libc/stdlib/malloc free.c,1.16,1.17

Miles Bader miles at uclibc.org
Wed Apr 2 06:40:47 UTC 2003


Update of /var/cvs/uClibc/libc/stdlib/malloc
In directory winder:/tmp/cvs-serv5019

Modified Files:
	free.c 
Log Message:
(free_to_heap): Unlock the heap before returning in the
__UCLIBC_UCLINUX_BROKEN_MUNMAP__ case.  Fix from YYang1 at Winbond.com.tw.


Index: free.c
===================================================================
RCS file: /var/cvs/uClibc/libc/stdlib/malloc/free.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- free.c	21 Nov 2002 06:06:21 -0000	1.16
+++ free.c	2 Apr 2003 06:40:43 -0000	1.17
@@ -1,8 +1,8 @@
 /*
  * libc/stdlib/malloc/free.c -- free function
  *
- *  Copyright (C) 2002  NEC Corporation
- *  Copyright (C) 2002  Miles Bader <miles at gnu.org>
+ *  Copyright (C) 2002,03  NEC Electronics Corporation
+ *  Copyright (C) 2002,03  Miles Bader <miles at gnu.org>
  *
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
@@ -209,6 +209,9 @@
 			    start, end - start);
 	  __heap_free (heap, (void *)start, end - start);
 	}
+
+      /* Finally release the lock for good.  */
+      __heap_unlock (heap);
 
       MALLOC_MMB_DEBUG_INDENT (-1);
 



More information about the uClibc-cvs mailing list