Coverity: test_qemu: Ensure FILE * is not leaked along error paths.