]> xenbits.xensource.com Git - qemu-xen-traditional.git/commit
xen_disk: fix memory leak xen-4.4.0-rc1
authorMatthew Daley <mattd@bugfuzz.com>
Wed, 4 Dec 2013 02:16:18 +0000 (15:16 +1300)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 4 Dec 2013 14:44:24 +0000 (14:44 +0000)
commit96b58a44756a8821c108358439b0f2c06e531159
treea424bcf4eab1c0e349e4593b56d1a8d14b845a48
parent832f9bde25542961ea4f768be6e00e4801484e3a
xen_disk: fix memory leak

On ioreq_release the full ioreq was memset to 0, losing 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>
Backport to qemu-xen-traditional.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/xen_disk.c