提交 7b811a74 编写于 作者: A Alex Jia 提交者: Eric Blake

qemu: Plug memory leak onqemuProcessWaitForMonitor() error path

Detected by Coverity. Leak introduced in commit 109efd79.
Signed-off-by: NAlex Jia <ajia@redhat.com>
上级 f9bb67ec
......@@ -1225,7 +1225,7 @@ qemuProcessWaitForMonitor(struct qemud_driver* driver,
if (VIR_ALLOC_N(buf, buf_size) < 0) {
virReportOOMError();
return -1;
goto closelog;
}
if (qemuProcessReadLogOutput(vm, logfd, buf, buf_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部