[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] misc: edu: free dma timer in device unit

From: Li Qiang
Subject: [Qemu-devel] [PATCH] misc: edu: free dma timer in device unit
Date: Tue, 7 Feb 2017 19:40:32 -0800

From: Li Qiang <address@hidden>

This can avoid a memory leak when hotplug and unplug.

Signed-off-by: Li Qiang <address@hidden>
 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)
+    timer_free(&edu->dma_timer);
 static void edu_obj_uint64(Object *obj, Visitor *v, const char *name,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]