Skip to content

Commit

Permalink
fatfs_vfs: fix the Memory leak: work
Browse files Browse the repository at this point in the history
Signed-off-by: zengwei [email protected]
  • Loading branch information
zengwei00 committed Dec 26, 2023
1 parent 724e6e0 commit a617c75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/fatfs/fatfs_vfs/fatfs_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 93 in pkg/fatfs/fatfs_vfs/fatfs_vfs.c

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace.

Check warning on line 93 in pkg/fatfs/fatfs_vfs/fatfs_vfs.c

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace
free(work);

Check failure on line 94 in pkg/fatfs/fatfs_vfs/fatfs_vfs.c

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace.

Check warning on line 94 in pkg/fatfs/fatfs_vfs/fatfs_vfs.c

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace
#endif

Check failure on line 95 in pkg/fatfs/fatfs_vfs/fatfs_vfs.c

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace.

Check warning on line 95 in pkg/fatfs/fatfs_vfs/fatfs_vfs.c

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace
return -EINVAL;
}

Expand Down

0 comments on commit a617c75

Please sign in to comment.