Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Add a couple of missing THREAD_UNLOCK's, for...
details: https://anonhg.NetBSD.org/src/rev/01a5ae7e8a52
branches: trunk
changeset: 540309:01a5ae7e8a52
user: chris <chris%NetBSD.org@localhost>
date: Mon Dec 09 14:14:59 2002 +0000
description:
Add a couple of missing THREAD_UNLOCK's, for the error exit path.
No functional change on Mainline, however SA branch probably needs this.
diffstat:
lib/libc/stdlib/malloc.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 5993f74d723c -r 01a5ae7e8a52 lib/libc/stdlib/malloc.c
--- a/lib/libc/stdlib/malloc.c Mon Dec 09 14:08:02 2002 +0000
+++ b/lib/libc/stdlib/malloc.c Mon Dec 09 14:14:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: malloc.c,v 1.39 2002/11/11 18:09:29 thorpej Exp $ */
+/* $NetBSD: malloc.c,v 1.40 2002/12/09 14:14:59 chris Exp $ */
/*
* ----------------------------------------------------------------------------
@@ -1114,6 +1114,7 @@
if (malloc_active++) {
wrtwarning("recursive call.\n");
malloc_active--;
+ THREAD_UNLOCK();
return (0);
}
if (!malloc_started)
@@ -1162,6 +1163,7 @@
if (malloc_active++) {
wrtwarning("recursive call.\n");
malloc_active--;
+ THREAD_UNLOCK();
return (0);
}
if (ptr && !malloc_started) {
Home |
Main Index |
Thread Index |
Old Index