Browse Source

Wrap _malloc_init() so internal calls go directly

prodded by otto@
ok kettenis@ otto@
OPENBSD_6_1
guenther 8 years ago
parent
commit
71af4d5f52
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

@ -1,4 +1,4 @@
/* $OpenBSD: malloc.c,v 1.201 2016/10/14 17:33:36 otto Exp $ */
/* $OpenBSD: malloc.c,v 1.202 2016/10/15 18:24:40 guenther Exp $ */
/*
* Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@ -1249,6 +1249,7 @@ _malloc_init(int from_rthreads)
mprotect(&malloc_readonly, sizeof(malloc_readonly), PROT_READ);
_MALLOC_UNLOCK(0);
}
DEF_STRONG(_malloc_init);
void *
malloc(size_t size)


Loading…
Cancel
Save