mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: plug memory leak
https://bugzilla.redhat.com/show_bug.cgi?id=656795 * src/qemu/qemu_monitor.c (qemuMonitorFree): Also free the buffer.
This commit is contained in:
parent
97cde147b5
commit
117246e0f7
@ -199,6 +199,7 @@ static void qemuMonitorFree(qemuMonitorPtr mon)
|
|||||||
if (virCondDestroy(&mon->notify) < 0)
|
if (virCondDestroy(&mon->notify) < 0)
|
||||||
{}
|
{}
|
||||||
virMutexDestroy(&mon->lock);
|
virMutexDestroy(&mon->lock);
|
||||||
|
VIR_FREE(mon->buffer);
|
||||||
VIR_FREE(mon);
|
VIR_FREE(mon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user