SH-3468 WIP add memory tracking base class
actually use return value of posix_memalign!master
parent
a891785f7a
commit
8c73ff245c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue