mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
qemu: Fix memory leak in processGuestPanicEvent
After processing the processEvent->data for a qemuProcessEventHandler callout, it's expected that the called processEvent->eventType helper will perform the proper free on the data field. In this case it's a qemuMonitorEventPanicInfoPtr.
This commit is contained in:
parent
d449dbdcc0
commit
6b7c5c4726
@ -4309,6 +4309,7 @@ processGuestPanicEvent(virQEMUDriverPtr driver,
|
||||
qemuDomainRemoveInactiveJob(driver, vm);
|
||||
|
||||
cleanup:
|
||||
qemuMonitorEventPanicInfoFree(info);
|
||||
virObjectUnref(cfg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user