fix(nvs_flash): delete temporary NVSPartition after erase

This commit is contained in:
sonika.rathi
2026-07-14 13:32:19 +02:00
parent a89931243c
commit 3ad5251819

View File

@@ -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;
}