qemu: Plug memory leak onqemuProcessWaitForMonitor() error path

Detected by Coverity. Leak introduced in commit 109efd7.

Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
Alex Jia 2011-11-30 14:49:51 +08:00 committed by Eric Blake
parent f9bb67ec6a
commit 7b811a74c6

View File

@ -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,