fatfs: fix double free in bailout path of esp_vfs_fat_sdmmc_mount
Fixes https://github.com/espressif/esp-idf/issues/1370
This commit is contained in:
parent
269486ca4d
commit
ed1e6e7224
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ esp_err_t esp_vfs_fat_sdmmc_mount(const char* base_path,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
free(workbuf);
|
free(workbuf);
|
||||||
|
workbuf = NULL;
|
||||||
ESP_LOGW(TAG, "mounting again");
|
ESP_LOGW(TAG, "mounting again");
|
||||||
res = f_mount(fs, drv, 0);
|
res = f_mount(fs, drv, 0);
|
||||||
if (res != FR_OK) {
|
if (res != FR_OK) {
|
||||||
|
|
Loading…
Reference in a new issue