mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00:00
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:
parent
afe8f4200f
commit
9661ac2f46
@ -1222,6 +1222,8 @@ qemuRemoveCgroup(virQEMUDriverPtr driver,
|
||||
VIR_DEBUG("Failed to terminate cgroup for %s", vm->def->name);
|
||||
}
|
||||
|
||||
virObjectUnref(cfg);
|
||||
|
||||
return virCgroupRemove(priv->cgroup);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user