SH-3468 WIP add memory tracking base class

actually use return value of posix_memalign!
master
Richard Linden 2013-01-10 00:12:25 -08:00
parent a891785f7a
commit 8c73ff245c
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ void* allocAligned(size_t size)
#elif LL_DARWIN
padded_allocation = ll_aligned_malloc(size_with_reserve, ALIGNMENT);
#else
posix_memalign(&padded_allocation, ALIGNMENT, size_with_reserve);
padded_allocation = posix_memalign(&padded_allocation, ALIGNMENT, size_with_reserve);
#endif
}
return (char*)padded_allocation + aligned_reserve;