mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
heap: When adding a new heap, allocate its metadata block from internal memory only
This commit is contained in:
@@ -206,7 +206,7 @@ esp_err_t heap_caps_add_region_with_caps(const uint32_t caps[], intptr_t start,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
heap_t *p_new = malloc(sizeof(heap_t));
|
heap_t *p_new = heap_caps_malloc(sizeof(heap_t), MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
|
||||||
if (p_new == NULL) {
|
if (p_new == NULL) {
|
||||||
err = ESP_ERR_NO_MEM;
|
err = ESP_ERR_NO_MEM;
|
||||||
goto done;
|
goto done;
|
||||||
|
Reference in New Issue
Block a user