1
0
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:
benpicco 2023-12-26 10:05:02 +00:00 committed by GitHub
commit 26682d882a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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