mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 20:48:41 +08:00
fix dfs statfs fullpath leak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/* @} */
|
||||
/* @} */
|
||||
|
||||
Reference in New Issue
Block a user