“f6710ee891574745b5e95f9c216eaff5eead075c”上不存在“docs-en/04-develop/06-subscribe.mdx”
未验证 提交 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) { ...@@ -552,6 +552,7 @@ static int32_t vnodeReadCfg(SVnodeObj *pVnode) {
int len = fread(content, 1, maxLen, fp); int len = fread(content, 1, maxLen, fp);
if (len <= 0) { if (len <= 0) {
vError("vgId:%d, failed to read vnode cfg, content is null", pVnode->vgId); vError("vgId:%d, failed to read vnode cfg, content is null", pVnode->vgId);
free(content);
return errno; return errno;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册