mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 14:03:55 +01:00
fatfs_vfs: fix the Memory leak: work
Signed-off-by: zengwei zengwei1@uniontech.com
This commit is contained in:
parent
724e6e0098
commit
1fd2eef1a0
@ -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…
x
Reference in New Issue
Block a user