]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.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>
Wed, 16 Jan 2013 11:54:07 +0000 (11:54 +0000)
commit7dc2caee5569a7d6aed019fe2bd6e43d83f9845e
treece8654ab723333296d3cf1358f0733e51b9463af
parentff780138eab9c89f9c339230ac73e4378ec9efde
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.

upstream-commit-id: 282c6a2f292705f823554447ca0b7731b6f81a97

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