mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/linux_heap_realloc_v5.1' into 'release/v5.1'
core-system/linux-target: fixed heap_caps_realloc not correctly allocating the... (v5.1) See merge request espressif/esp-idf!23976
This commit is contained in:
@@ -80,7 +80,7 @@ void *heap_caps_malloc_prefer( size_t size, size_t num, ... )
|
|||||||
|
|
||||||
static void *heap_caps_realloc_base( void *ptr, size_t size, uint32_t caps)
|
static void *heap_caps_realloc_base( void *ptr, size_t size, uint32_t caps)
|
||||||
{
|
{
|
||||||
ptr = realloc(ptr, caps);
|
ptr = realloc(ptr, size);
|
||||||
|
|
||||||
if (ptr == NULL && size > 0) {
|
if (ptr == NULL && size > 0) {
|
||||||
heap_caps_alloc_failed(size, caps, __func__);
|
heap_caps_alloc_failed(size, caps, __func__);
|
||||||
|
Reference in New Issue
Block a user