From 08c5d8869f87c61867d9133871b5d0988a7d2d36 Mon Sep 17 00:00:00 2001 From: Old-Ding <35417409+Old-Ding@users.noreply.github.com> Date: Tue, 30 Jun 2026 10:19:05 +0800 Subject: [PATCH] fix dfs statfs fullpath leak --- components/dfs/dfs_v2/src/dfs_fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/dfs/dfs_v2/src/dfs_fs.c b/components/dfs/dfs_v2/src/dfs_fs.c index 39a36f8cf39..93c1886d62a 100644 --- a/components/dfs/dfs_v2/src/dfs_fs.c +++ b/components/dfs/dfs_v2/src/dfs_fs.c @@ -650,6 +650,8 @@ int dfs_statfs(const char *path, struct statfs *buffer) } } + rt_free(fullpath); + return ret; } @@ -723,4 +725,4 @@ int dfs_filesystem_get_partition(struct dfs_partition *part, return RT_EOK; } -/* @} */ \ No newline at end of file +/* @} */