]> git.proxmox.com Git - qemu.git/commit
xen_disk: fix memory leak
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 14 Jan 2013 18:26:53 +0000 (18:26 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 14 Jan 2013 18:26:53 +0000 (18:26 +0000)
commit282c6a2f292705f823554447ca0b7731b6f81a97
tree1089d3e728378cb2b4dd3c61e722b25609929b1f
parenta507db9599599ce33007b524276a6ea88e521662
xen_disk: fix memory leak

On ioreq_release the full ioreq was memset to 0, loosing all the data
and memory allocations inside the QEMUIOVector, which leads to a
memory leak. Create a new function to specifically reset ioreq.

Reported-by: Maik Wessler <maik.wessler@yahoo.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen_disk.c