提交 1b380b89 编写于 作者: J Jonathon Jongsma 提交者: Erik Skultety

qemu: agent: fix potential leak in qemuAgentGetFSInfo()

On error paths, info_ret could potentially leak. Make sure it's freed.
Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 7c40211a
......@@ -2208,6 +2208,7 @@ qemuAgentGetFSInfo(qemuAgentPtr mon,
virDomainFSInfoFree(info_ret[i]);
}
VIR_FREE(agentinfo);
VIR_FREE(info_ret);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册