From 4d1e3943d6d0fcfc60abd53c4814043efa4128dc Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Tue, 16 Dec 2014 20:02:36 +0100 Subject: [PATCH] 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 --- src/qemu/qemu_driver.c | 1 + 1 file changed, 1 insertion(+) 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))