Allow user to configure if free is allowed at runtime.

Description

Allow user to configure if free is allowed at runtime.

Reverts to Eigen 3.4 behavior by default, where free(...) is allowed if EIGEN_RUNTIME_NO_MALLOC is defined but set_is_malloc_allowed(true). Adds a separate set_is_free_allowed(...) to explicitly control use of std::free.

Reference issue

Fixes #2983 (closed).

Additional information

Merge request reports

Loading