test-qga: fix a resource leak in test_qga_guest_get_osinfo()
commit43d1da7cb99ea66008583f531b584235d36fd0a3
authorAlex Chen <alex.chen@huawei.com>
Wed, 25 Nov 2020 10:24:03 +0000 (25 10:24 +0000)
committerThomas Huth <thuth@redhat.com>
Wed, 9 Dec 2020 07:04:34 +0000 (9 08:04 +0100)
tree409d132a2fa875ad6fc4cdcf341349bbebbac899
parent84eda1107920c92eaae74510760d5c975ba895d7
test-qga: fix a resource leak in test_qga_guest_get_osinfo()

The fixture->fd is created in fixture_setup() and, likewise, needs to be closed
in fixture_tear_down().

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201125102403.57709-1-alex.chen@huawei.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/test-qga.c