From cdfd5bd8bfa2734da7903a06f987958e112655b5 Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Fri, 27 Dec 2024 11:11:34 +0800 Subject: [PATCH] [DM/BLOCK] Fixup DFS partition memory leak Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/block/partitions/dfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/drivers/block/partitions/dfs.c b/components/drivers/block/partitions/dfs.c index da4605e512b..3fdad1a1d6a 100644 --- a/components/drivers/block/partitions/dfs.c +++ b/components/drivers/block/partitions/dfs.c @@ -49,5 +49,7 @@ rt_err_t dfs_partition(struct rt_blk_disk *disk) } } + rt_free(sector); + return RT_EOK; }