mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/vfs_fat_sdmmc_mount_v3.1' into 'release/v3.1'
Fix memory leak upon failure of esp_vfs_fat_sdmmc_mount() (v3.1) See merge request espressif/esp-idf!6396
This commit is contained in:
commit
15e2bfd250
@ -157,6 +157,8 @@ fail:
|
|||||||
ff_diskio_unregister(pdrv);
|
ff_diskio_unregister(pdrv);
|
||||||
free(s_card);
|
free(s_card);
|
||||||
s_card = NULL;
|
s_card = NULL;
|
||||||
|
free(s_base_path);
|
||||||
|
s_base_path = NULL;
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user