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>
Fri, 16 Sep 2011 15:15:30 +0000 (16:15 +0100)
commit8375d3032eeba790106f95d9a59c0f624d7b550b
treec5b40dcf012a8e76fd4d2f5cce956a228ede2d59
parente25b7a5e1efd03ccf2d82ee4a44ca2e6cd00f6fa
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