mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 12:46:00 +08:00
Call check_that_malloc_is_allowed() in aligned_realloc()
This commit is contained in:
parent
6e83e906c2
commit
b7e21d4e38
@ -229,6 +229,11 @@ inline void* aligned_realloc(void *ptr, std::size_t new_size, std::size_t old_si
|
|||||||
if (!result && new_size)
|
if (!result && new_size)
|
||||||
throw_std_bad_alloc();
|
throw_std_bad_alloc();
|
||||||
|
|
||||||
|
#ifdef EIGEN_RUNTIME_NO_MALLOC
|
||||||
|
if (result != ptr)
|
||||||
|
check_that_malloc_is_allowed();
|
||||||
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user