diff --git a/components/mbedtls/port/esp_mem.c b/components/mbedtls/port/esp_mem.c index 902934d92769..86a7cd01643b 100644 --- a/components/mbedtls/port/esp_mem.c +++ b/components/mbedtls/port/esp_mem.c @@ -11,7 +11,7 @@ #ifndef CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC -IRAM_ATTR void *esp_mbedtls_mem_calloc(size_t n, size_t size) +void *esp_mbedtls_mem_calloc(size_t n, size_t size) { #ifdef CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT); @@ -33,7 +33,7 @@ IRAM_ATTR void *esp_mbedtls_mem_calloc(size_t n, size_t size) #endif } -IRAM_ATTR void esp_mbedtls_mem_free(void *ptr) +void esp_mbedtls_mem_free(void *ptr) { return heap_caps_free(ptr); }