projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove redundant check in memalign
[musl]
/
src
/
malloc
/
memalign.c
diff --git
a/src/malloc/memalign.c
b/src/malloc/memalign.c
index
cb23247
..
006bd21
100644
(file)
--- 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;
}