diff --git a/components/heap/heap_caps.c b/components/heap/heap_caps.c index 7911702a45..f881149ff7 100644 --- a/components/heap/heap_caps.c +++ b/components/heap/heap_caps.c @@ -488,7 +488,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;