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:
John Ferlan 2018-01-26 15:32:27 -05:00
parent d449dbdcc0
commit 6b7c5c4726

View File

@ -4309,6 +4309,7 @@ processGuestPanicEvent(virQEMUDriverPtr driver,
qemuDomainRemoveInactiveJob(driver, vm);
cleanup:
qemuMonitorEventPanicInfoFree(info);
virObjectUnref(cfg);
}