]> git.proxmox.com Git - qemu.git/commit
block: Free iovec arrays allocated by multiwrite_merge()
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 21 Apr 2010 19:35:45 +0000 (20:35 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 24 Apr 2010 10:45:03 +0000 (12:45 +0200)
commit012d4869c1eb195e83f159ed7b2bced33f37f960
treecb5bfa9ccfce78f64780cd9d1d26df86b51f9c15
parent3597c9c1d5722edf1ebcaf01ff1ea7c3b68ecb28
block: Free iovec arrays allocated by multiwrite_merge()

A new iovec array is allocated when creating a merged write request.
This patch ensures that the iovec array is deleted in addition to its
qiov owner.

Reported-by: Leszek Urbanski <tygrys@moo.pl>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 1e1ea48d42e011b9bdd0d689d184e7cac4617b66)
block.c