Fix memory leak upon failure of esp_vfs_fat_sdmmc_mount()

Closes https://github.com/espressif/esp-idf/issues/4165
release/v3.2
Roland Dobai 2019-10-08 13:17:34 +02:00 zatwierdzone przez Roland Dobai
rodzic f819b7da90
commit 5519afe675
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

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