diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 7211d4288a..9aba4c87ae 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4781,6 +4781,7 @@ qemuDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus, err = virSaveLastError(); virCgroupSetCpusetMems(cgroup_temp, mem_mask); virSetError(err); + virFreeError(err); } if (!qemuDomainObjEndJob(driver, vm))