From 9778bb214575e791beb472d4ab19b5cc14221d0a Mon Sep 17 00:00:00 2001 From: Xiao Xufeng Date: Fri, 6 Mar 2026 16:51:59 +0800 Subject: [PATCH] bootloader_utils: fixed missing unmap in load_partition_table when table verify failed --- components/bootloader_support/src/bootloader_utility.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bootloader_support/src/bootloader_utility.c b/components/bootloader_support/src/bootloader_utility.c index 57aba58d2d1..b611a345c6e 100644 --- a/components/bootloader_support/src/bootloader_utility.c +++ b/components/bootloader_support/src/bootloader_utility.c @@ -155,6 +155,7 @@ bool bootloader_utility_load_partition_table(bootloader_state_t *bs) err = esp_partition_table_verify(partitions, true, &num_partitions); if (err != ESP_OK) { ESP_LOGE(TAG, "Failed to verify partition table"); + bootloader_munmap(partitions); return false; }