提交 6864f3a3 编写于 作者: G goprife@gmail.com

fixed the memory leak in dfs_elm.c found by hezlog@gmail.com

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2292 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 d189f8c1
......@@ -309,6 +309,9 @@ int dfs_elm_open(struct dfs_fd *file)
fd = (FIL *)rt_malloc(sizeof(FIL));
if (fd == RT_NULL)
{
#if _VOLUMES > 1
rt_free(drivers_fn);
#endif
return -DFS_STATUS_ENOMEM;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册