Fix memory leak upon failure of esp_vfs_fat_sdmmc_mount()

Closes https://github.com/espressif/esp-idf/issues/4165
This commit is contained in:
Roland Dobai 2019-10-08 13:17:34 +02:00 committed by Roland Dobai
parent 57a13b09cc
commit de9b0b1c56

View file

@ -159,6 +159,8 @@ fail:
ff_diskio_unregister(pdrv);
free(s_card);
s_card = NULL;
free(s_base_path);
s_base_path = NULL;
return err;
}