Merge branch 'bugfix/heap_psram_fill' into 'master'

heap: Only fill new heaps with FREE_FILL_PATTERN if Comprehensive poisoning is on

See merge request espressif/esp-idf!8210
This commit is contained in:
Angus Gratton 2020-04-27 14:20:41 +08:00
commit 9300615a13

View file

@ -355,9 +355,11 @@ void *multi_heap_get_block_owner(multi_heap_block_handle_t block)
multi_heap_handle_t multi_heap_register(void *start, size_t size)
{
#ifdef SLOW
if (start != NULL) {
memset(start, FREE_FILL_PATTERN, size);
}
#endif
return multi_heap_register_impl(start, size);
}