mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-02 09:29:35 -05: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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user