提交 07ecbf69 编写于 作者: S Shuduo Sang

fix resource leak in vnodeMain.c

[TD-480]
上级 423fa696
...@@ -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.
先完成此消息的编辑!
想要评论请 注册