bootloader_utils: fixed missing unmap in load_partition_table when table verify failed

This commit is contained in:
Xiao Xufeng
2026-09-02 02:40:20 +08:00
committed by Michael.B
parent 7080d6ce36
commit 41b0ce7bff
@@ -138,6 +138,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;
}