vfs: fix double free.

pull/846/merge
Quentin Thérond 2017-07-25 14:14:23 +02:00 zatwierdzone przez Angus Gratton
rodzic 36eccee213
commit 88e71a680e
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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) {