Call check_that_malloc_is_allowed() in aligned_realloc()

Reference issue

#2526 (closed)

What does this implement/fix?

This prevents reallocs when EIGEN_RUNTIME_NO_MALLOC is defined. The check is not needed with EIGEN_NO_MALLOC as no memory could be malloc'd in the first place. We only call the assert if result != ptr which means an allocation happened.

Additional information

Merge request reports

Loading