mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/heap-calloc-fail-wrong-size_v4.4' into 'release/v4.4'
fix(heap): Wrong size propagated in alloc fail callback of heap_caps_calloc() (backport v4.4) See merge request espressif/esp-idf!30093
This commit is contained in:
commit
be6cf38b31
@ -496,7 +496,7 @@ IRAM_ATTR void *heap_caps_calloc( size_t n, size_t size, uint32_t caps)
|
||||
void* ptr = heap_caps_calloc_base(n, size, caps);
|
||||
|
||||
if (!ptr && size > 0){
|
||||
heap_caps_alloc_failed(size, caps, __func__);
|
||||
heap_caps_alloc_failed(n * size, caps, __func__);
|
||||
}
|
||||
|
||||
return ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user