qemu-io: fix memory leak
authorKevin Wolf <kwolf@redhat.com>
Fri, 10 Jul 2009 11:33:52 +0000 (13:33 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 10 Jul 2009 17:25:36 +0000 (12:25 -0500)
commit7d8abfcb50a33aed369bbd267852cf04009c49e9
tree9741ee54b0a4a87a4b96b579ec36812d329b8efa
parent9c4bab2668e6b5a9b69f77e3533380b6fd79034e
qemu-io: fix memory leak

qemu-io leaks the request buffer whenever the read or write function isn't
executed completely down the "normal" code path.

[hch: also fix the aio and vectored variants the same way]

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
qemu-io.c