diff options
Diffstat (limited to 'src/stdlib/malloc.c')
-rw-r--r-- | src/stdlib/malloc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/stdlib/malloc.c b/src/stdlib/malloc.c index 733d73b3..d372fd6b 100644 --- a/src/stdlib/malloc.c +++ b/src/stdlib/malloc.c @@ -1,16 +1,13 @@ #include <stdlib.h> #include "_stdlib.h" +#include "_jkmalloc.h" /** allocate memory **/ void * malloc(size_t size) { SIGNAL_SAFE(0); - if (size == 0) { - return NULL; - } - - return realloc(NULL, size); + return __jkmalloc(NULL, NULL, 0, NULL, 1, size, 0); } /*** |