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