Browse Source

missing THREAD_UNLOCK; netch@segfault.kiev.ua

OPENBSD_2_7
deraadt 24 years ago
parent
commit
0f5d44fb3b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/lib/libc/stdlib/malloc.c

+ 2
- 1
src/lib/libc/stdlib/malloc.c View File

@ -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);


Loading…
Cancel
Save