From 9661ac2f46eeb4690a25dfc48bdf9dc9a4dfe822 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Tue, 21 Oct 2014 11:44:13 +0200 Subject: [PATCH] qemu: unref cfg after TerminateMachine has been called Commit 4882618ed13b469d92fa8b2b4a158fdb17dbe9f1 added the code that requests driver cfg, but forgot to unref it. Signed-off-by: Martin Kletzander --- src/qemu/qemu_cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index fa894c578b..b5bdb362da 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -1222,6 +1222,8 @@ qemuRemoveCgroup(virQEMUDriverPtr driver, VIR_DEBUG("Failed to terminate cgroup for %s", vm->def->name); } + virObjectUnref(cfg); + return virCgroupRemove(priv->cgroup); }