]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix potential resource leak
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 21 Oct 2020 21:50:06 +0000 (16:50 -0500)
committerLaine Stump <laine@redhat.com>
Fri, 23 Oct 2020 22:39:20 +0000 (18:39 -0400)
commite4648736bea94c7893dafc80fc6ba6a96ae980a5
treecbe139a0a679b37d332cdd0468769e83d80cd1ae
parentc8c69911690bb670f58f4d4f8b7a67480234e5f0
qemu: fix potential resource leak

Coverity reported a potential resource leak. While it's probably not
a real-world scenario, the code could technically jump to cleanup
between the time that vdpafd is opened and when it is used. Ensure that
it gets cleaned up in that case.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/qemu/qemu_command.c