diff options
| author | chris <chris@NetBSD.org> | 2002-12-09 14:14:59 +0000 |
|---|---|---|
| committer | chris <chris@NetBSD.org> | 2002-12-09 14:14:59 +0000 |
| commit | 5e606f5b98d2f93859fd709835303739d04d3f98 (patch) | |
| tree | 86cd2f0239530099dbf19ac1d432884b2ad6658d /lib/libc/stdlib/malloc.c | |
| parent | 1d4f4f766c8017a02024efa22c5d02bfee393819 (diff) | |
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 (limited to 'lib/libc/stdlib/malloc.c')
| -rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 65348fe6ff5..900764e5b1e 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -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 @@ malloc(size_t size) if (malloc_active++) { wrtwarning("recursive call.\n"); malloc_active--; + THREAD_UNLOCK(); return (0); } if (!malloc_started) @@ -1162,6 +1163,7 @@ realloc(void *ptr, size_t size) if (malloc_active++) { wrtwarning("recursive call.\n"); malloc_active--; + THREAD_UNLOCK(); return (0); } if (ptr && !malloc_started) { |
