From: Rich Felker Date: Wed, 24 Jul 2013 03:40:26 +0000 (-0400) Subject: remove redundant check in memalign X-Git-Tag: v0.9.12~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a30ba5ca4072e85e42e84547572e958871952a2;p=oweals%2Fmusl.git remove redundant check in memalign the case where mem was already aligned is handled earlier in the function now. --- 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; }