mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
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:
parent
f9bb67ec6a
commit
7b811a74c6
@ -1225,7 +1225,7 @@ qemuProcessWaitForMonitor(struct qemud_driver* driver,
|
|||||||
|
|
||||||
if (VIR_ALLOC_N(buf, buf_size) < 0) {
|
if (VIR_ALLOC_N(buf, buf_size) < 0) {
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
return -1;
|
goto closelog;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qemuProcessReadLogOutput(vm, logfd, buf, buf_size,
|
if (qemuProcessReadLogOutput(vm, logfd, buf, buf_size,
|
||||||
|
Loading…
Reference in New Issue
Block a user