]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroup: no need to ifdef virCgroupFree
authorPavel Hrdina <phrdina@redhat.com>
Wed, 24 Apr 2019 13:26:12 +0000 (15:26 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 25 Apr 2019 09:43:07 +0000 (11:43 +0200)
commit9470815d54693feae64714c79add0f733a3f0fda
treeaf95fa902d96cd4184df5815f1c1a3eae5be0a2a
parent51f9f80d350e633adf479c6a9b3c55f82ca9cbd4
vircgroup: no need to ifdef virCgroupFree

virCgroup struct is always defined and the free function is not calling
anything that would require OS supporting cgroups.

This fixes an issue if we try to start a VM with QEMU binary that
doesn't support QXL.  The start operation will fail in
qemuProcessStartValidateVideo() which will set correct error message,
but later in one of the cleanup paths we will call
qemuDomainObjPrivateDataClear() which always calls virCgroupFree()
and that will fail on OS that doesn't support cgroups and it will
set a new error which will be eventually reported to user.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgroup.c