Central heap required for functions called from within tasks that use malloc

You might use std malloc in a multi-tasking application if your C-library (newlib) supports it.
See e.g. this posts here in the forum for the details:

There are a few more regarding this topic.