The new perf code didn't bother to clear a pointer in 'priv' causing a
double free or other memory corruption goodness if a VM failed to start.
Clear the pointer after freeing the memory.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1324757
(cherry picked from commit
03e8d5fb54c7c897225ed9ea56d83b894930f144)
cleanup:
virPerfFree(priv->perf);
+ priv->perf = NULL;
return -1;
}
virCgroupFree(&priv->cgroup);
virPerfFree(priv->perf);
+ priv->perf = NULL;
qemuProcessRemoveDomainStatus(driver, vm);