mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(nvs_flash): delete temporary NVSPartition after erase
This commit is contained in:
@@ -250,8 +250,7 @@ extern "C" esp_err_t nvs_flash_erase_partition(const char *part_name)
|
|||||||
|
|
||||||
// erase the partition
|
// erase the partition
|
||||||
err = part->erase_range(0, part->get_size());
|
err = part->erase_range(0, part->get_size());
|
||||||
|
delete part;
|
||||||
// No need to delete the partition here, as it is managed by the NVSPartitionManager.
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user