mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
Merge branch 'fix/heap-calloc-fail-wrong-size_v5.2' into 'release/v5.2'
fix(heap): Wrong size propagated in alloc fail callback of heap_caps_calloc() (backport v5.2) See merge request espressif/esp-idf!30090
This commit is contained in:
@@ -525,7 +525,7 @@ HEAP_IRAM_ATTR void *heap_caps_calloc( size_t n, size_t size, uint32_t caps)
|
|||||||
|
|
||||||
|
|
||||||
if (!ptr && size > 0){
|
if (!ptr && size > 0){
|
||||||
heap_caps_alloc_failed(size, caps, __func__);
|
heap_caps_alloc_failed(n * size, caps, __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ptr;
|
return ptr;
|
||||||
|
Reference in New Issue
Block a user