Skip to content

Commit 825e87d

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM/BLOCK] Fixup DFS partition memory leak
Signed-off-by: GuEe-GUI <[email protected]>
1 parent e221cd5 commit 825e87d

File tree

1 file changed

+2
-0
lines changed
  • components/drivers/block/partitions

1 file changed

+2
-0
lines changed

Diff for: components/drivers/block/partitions/dfs.c

+2
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ rt_err_t dfs_partition(struct rt_blk_disk *disk)
4949
}
5050
}
5151

52+
rt_free(sector);
53+
5254
return RT_EOK;
5355
}

0 commit comments

Comments
 (0)