mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
b0c5665f15
During a call to multi_heap_malloc(), if both these conditions were true: - That heap only has one block large enough for the allocation (this is always the case if the heap is unfragmented). - Another allocation is simultaneously occurring in the same heap. ... multi_heap_malloc() could incorrectly return NULL. This caused IDF heap_caps_malloc() and malloc() to also fail, particularly often if only one or two heaps had space for the allocation (otherwise heap_caps_malloc() fails over to the next heap).