mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: Free saved error in qemuDomainSetVcpusFlags
Commit e3435caf
added cleanup code to qemuDomainSetVcpusFlags() that was
not supposed to reset the error. Usual procedure was done, saving the
error to temporary variable, but it was never free'd, but rather leaked.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
86759ec61a
commit
4d1e3943d6
@ -4781,6 +4781,7 @@ qemuDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
|
|||||||
err = virSaveLastError();
|
err = virSaveLastError();
|
||||||
virCgroupSetCpusetMems(cgroup_temp, mem_mask);
|
virCgroupSetCpusetMems(cgroup_temp, mem_mask);
|
||||||
virSetError(err);
|
virSetError(err);
|
||||||
|
virFreeError(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!qemuDomainObjEndJob(driver, vm))
|
if (!qemuDomainObjEndJob(driver, vm))
|
||||||
|
Loading…
Reference in New Issue
Block a user