Coverity: test_qemu: Ensure FILE * is not leaked along error paths.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 23 Aug 2011 17:02:24 +0000 (18:02 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 28 Aug 2011 08:19:02 +0000 (09:19 +0100)
commita9411de27d0dcc8d793aa1d0a7e96c7dc1d58585
treeb578c6aaaf6ea6a4d2ff690dd38c2b495c744691
parent8fdb91b4926ae076d2c10fc0b0c1e3f50eeba8d7
Coverity: test_qemu: Ensure FILE * is not leaked along error paths.

This refactors the code in test_qemu slightly to ensure that
FILE *fp is not leaked on error paths.
(cherry picked from commit 08e77ad8cb4e8ac70d4217ebd5d236eba81645b5)
src/launch.c