Skip to content

Commit

Permalink
[DM/BLOCK] Fixup DFS partition memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: GuEe-GUI <[email protected]>
  • Loading branch information
GuEe-GUI committed Dec 27, 2024
1 parent e221cd5 commit cdfd5bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/drivers/block/partitions/dfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ rt_err_t dfs_partition(struct rt_blk_disk *disk)
}
}

rt_free(sector);

return RT_EOK;
}

0 comments on commit cdfd5bd

Please sign in to comment.