qemu: unref cfg after TerminateMachine has been called

Commit 4882618ed1 added the code that
requests driver cfg, but forgot to unref it.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2014-10-21 11:44:13 +02:00
parent afe8f4200f
commit 9661ac2f46

View File

@ -1222,6 +1222,8 @@ qemuRemoveCgroup(virQEMUDriverPtr driver,
VIR_DEBUG("Failed to terminate cgroup for %s", vm->def->name);
}
virObjectUnref(cfg);
return virCgroupRemove(priv->cgroup);
}