qemu-io: Fix multiwrite_f error handling
authorKevin Wolf <kwolf@redhat.com>
Mon, 31 Oct 2011 10:49:21 +0000 (11:49 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Nov 2011 13:23:44 +0000 (14:23 +0100)
commit1de0f4690f099e2e090343f46a84361448c100a4
treefb6287e71e1ce653a9ae1b462667fc8ab10d0aee
parent64d88eb2e69a36bdd5680bbf861f56f19cc878b2
qemu-io: Fix multiwrite_f error handling

Without this fix, some qiovs can be leaked if an error occurs. Also a semicolon
at the end of the command line would make the code walk beyond the end of argv.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io.c