mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: process: Don't needlesly clear the perf events in qemuDomainPerfRestart
At that point the perf events struct should not be allocated so there's no use in clearing it.
This commit is contained in:
parent
edadd46c05
commit
22e464744d
@ -3492,10 +3492,7 @@ qemuDomainPerfRestart(virDomainObjPtr vm)
|
||||
virDomainDefPtr def = vm->def;
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
|
||||
virPerfFree(priv->perf);
|
||||
|
||||
priv->perf = virPerfNew();
|
||||
if (!priv->perf)
|
||||
if (!(priv->perf = virPerfNew()))
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < VIR_PERF_EVENT_LAST; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user