summaryrefslogtreecommitdiff
path: root/src/malloc/memalign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc/memalign.c')
-rw-r--r--src/malloc/memalign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc/memalign.c b/src/malloc/memalign.c
index cb232476..006bd21c 100644
--- a/src/malloc/memalign.c
+++ b/src/malloc/memalign.c
@@ -50,7 +50,7 @@ void *__memalign(size_t align, size_t len)
((size_t *)new)[-1] = header&7 | end-new;
((size_t *)end)[-2] = footer&7 | end-new;
- if (new != mem) free(mem);
+ free(mem);
return new;
}