未验证 提交 9fefe5ac 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2086 from taosdata/hotfix/sangshuduo/fix-resource-leak-in-vnodeMain.c

fix resource leak in vnodeMain.c
......@@ -552,6 +552,7 @@ static int32_t vnodeReadCfg(SVnodeObj *pVnode) {
int len = fread(content, 1, maxLen, fp);
if (len <= 0) {
vError("vgId:%d, failed to read vnode cfg, content is null", pVnode->vgId);
free(content);
return errno;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册