tests/ide: Free pcibus when finishing a test
commit3b6b0a8ae7b437256aba3b44643a7a608d54b916
authorThomas Huth <thuth@redhat.com>
Tue, 13 Nov 2018 15:03:21 +0000 (13 16:03 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 19 Nov 2018 20:59:44 +0000 (19 21:59 +0100)
tree5b34087fb52b4666816bf787ce2f18c4af991d95
parent61793a627d10908715eac2fc4a25b724f43e8fda
tests/ide: Free pcibus when finishing a test

Once a test has finished, the pcibus structure should be freed, to
avoid leaking memory and to make sure that the structure is properly
re-initialized when the next test starts.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/ide-test.c