Directly use memalign instead of malloc to safe one indirection.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25776 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2008-06-03 06:56:24 +00:00
parent b4babdf47e
commit 83d453239c
+1 -1
View File
@@ -1419,7 +1419,7 @@ realloc(void *address, size_t newSize)
}
if (address == NULL)
return malloc(newSize);
return memalign(0, newSize);
if (newSize == 0) {
free(address);