mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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 <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);
|
VIR_DEBUG("Failed to terminate cgroup for %s", vm->def->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virObjectUnref(cfg);
|
||||||
|
|
||||||
return virCgroupRemove(priv->cgroup);
|
return virCgroupRemove(priv->cgroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user