mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20206 from zengwei2000/patch-4
fatfs_vfs: fix the Memory leak: work
This commit is contained in:
commit
26682d882a
@ -90,6 +90,9 @@ static int _format(vfs_mount_t *mountp)
|
||||
|
||||
/* make sure the volume has been initialized */
|
||||
if (_init(mountp)) {
|
||||
#if !CONFIG_FATFS_FORMAT_ALLOC_STATIC
|
||||
free(work);
|
||||
#endif
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user