提交 d61820df 编写于 作者: O Osier Yang

qemu: Fix memory leak in qemuProcessWaitForMonitor

Move "VIR_FREE(buf) into label "closelog", so that "buf" could be
freed before returning.
上级 6a15cc6b
......@@ -1122,9 +1122,9 @@ cleanup:
ret = -1;
}
closelog:
VIR_FREE(buf);
closelog:
if (VIR_CLOSE(logfd) < 0) {
char ebuf[1024];
VIR_WARN("Unable to close logfile: %s",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册