summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2000-04-10 19:36:29 +0000
committerderaadt <deraadt@openbsd.org>2000-04-10 19:36:29 +0000
commit8275dce4e303b2cb03ddee4d63eab713cb5658d4 (patch)
treeb0347f583d856531a05d2515a9ee12891a408743 /lib/libc/stdlib/malloc.c
parentdocument EWOULDBLOCK; freebsd (diff)
downloadwireguard-openbsd-8275dce4e303b2cb03ddee4d63eab713cb5658d4.tar.xz
wireguard-openbsd-8275dce4e303b2cb03ddee4d63eab713cb5658d4.zip
missing THREAD_UNLOCK; netch@segfault.kiev.ua
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index 03d70531b7b..ad5ce94d549 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/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);