mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 01:59:38 +08:00
bugfix in ei_handmade_aligned_free for null pointers
This commit is contained in:
parent
b365f443a2
commit
a4252584ed
@ -60,6 +60,7 @@ inline void* ei_handmade_aligned_malloc(size_t size)
|
||||
/** \internal frees memory allocated with ei_handmade_aligned_malloc */
|
||||
inline void ei_handmade_aligned_free(void *ptr)
|
||||
{
|
||||
if(ptr)
|
||||
free(*(reinterpret_cast<void**>(ptr) - 1));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user