vfs: fix double free.

This commit is contained in:
Quentin Thérond 2017-07-25 14:14:23 +02:00 committed by Angus Gratton
parent 36eccee213
commit 88e71a680e

View file

@ -83,6 +83,7 @@ esp_err_t esp_vfs_fat_spiflash_mount(const char* base_path,
goto fail;
}
free(workbuf);
workbuf = NULL;
ESP_LOGI(TAG, "Mounting again");
fresult = f_mount(fs, drv, 0);
if (fresult != FR_OK) {