1
0
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:
zengwei2000 2023-12-20 23:42:30 +08:00
parent 724e6e0098
commit 1fd2eef1a0

View File

@ -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;
}