diff --git a/components/dfs/dfs_v2/filesystems/devfs/devfs.c b/components/dfs/dfs_v2/filesystems/devfs/devfs.c index b09c54eb35a..38e9a2e4550 100644 --- a/components/dfs/dfs_v2/filesystems/devfs/devfs.c +++ b/components/dfs/dfs_v2/filesystems/devfs/devfs.c @@ -77,6 +77,7 @@ static int dfs_devfs_open(struct dfs_file *file) } } } + rt_free(device_name); } return ret;