未验证 提交 f0f3456a 编写于 作者: O openharmony_ci 提交者: Gitee

!128 Fix memory leak in opendir()

Merge pull request !128 from Hongjin Li/dev
......@@ -129,6 +129,7 @@ DIR *opendir(const char *path)
}
if (ret < 0)
{
free(dir);
goto errout_with_count;
}
dir->fd_status = DIRENT_MAGIC;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册