]> git.ipfire.org Git - thirdparty/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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 21 Jan 2013 20:06:50 +0000 (14:06 -0600)
commit90c96d33c41e243d5f2c6cc197779f5ab744879e
treeb3e2f65a033310f73ae5bd2134e115210452c9ad
parent4ee28799d417de0c929622021d6dbaa58a53dfc5
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>
(cherry picked from commit 282c6a2f292705f823554447ca0b7731b6f81a97)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/xen_disk.c