提交 4a30ba5c 编写于 作者: R Rich Felker

remove redundant check in memalign

the case where mem was already aligned is handled earlier in the
function now.
上级 70a92bc9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册