From 0f5d44fb3b157ac273bf784f44147e133fe89e7c Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 10 Apr 2000 19:36:29 +0000 Subject: [PATCH] missing THREAD_UNLOCK; netch@segfault.kiev.ua --- src/lib/libc/stdlib/malloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 03d70531..ad5ce94d 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c @@ -8,7 +8,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: malloc.c,v 1.39 2000/03/01 03:09:08 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: malloc.c,v 1.40 2000/04/10 19:36:29 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -1245,6 +1245,7 @@ free(void *ptr) if (malloc_active++) { wrtwarning("recursive call.\n"); malloc_active--; + THREAD_UNLOCK(); return; } ifree(ptr);