mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 02:30:52 +03:00
bootloader_utils: fixed missing unmap in load_partition_table when table verify failed
This commit is contained in:
committed by
Michael (XIAO Xufeng)
parent
789ce684c9
commit
0307fa6abb
@@ -154,6 +154,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user