diff options
Diffstat (limited to 'src/malloc/memalign.c')
-rw-r--r-- | src/malloc/memalign.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/malloc/memalign.c b/src/malloc/memalign.c index 35b67599..8fb2002c 100644 --- a/src/malloc/memalign.c +++ b/src/malloc/memalign.c @@ -3,8 +3,6 @@ #include <errno.h> #include "libc.h" -void __internal_free(void *); - void *__memalign(size_t align, size_t len) { unsigned char *mem, *new, *end; @@ -15,7 +13,7 @@ void *__memalign(size_t align, size_t len) return NULL; } - if (len > SIZE_MAX - align || free != __internal_free) { + if (len > SIZE_MAX - align) { errno = ENOMEM; return NULL; } |