From: Li Qiang <liqiang...@360.cn> This can avoid a memory leak when hotplug and unplug.
Signed-off-by: Li Qiang <liqiang...@360.cn> --- hw/misc/edu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index 401039c..7565552 100644 --- a/hw/misc/edu.c +++ b/hw/misc/edu.c @@ -375,6 +375,7 @@ static void pci_edu_uninit(PCIDevice *pdev) qemu_mutex_destroy(&edu->thr_mutex); timer_del(&edu->dma_timer); + timer_free(&edu->dma_timer); } static void edu_obj_uint64(Object *obj, Visitor *v, const char *name, -- 1.8.3.1