qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 5/7] vfio: platform: cleanup the notifier in error p


From: Li Qiang
Subject: [Qemu-devel] [PATCH 5/7] vfio: platform: cleanup the notifier in error path
Date: Thu, 18 Oct 2018 22:20:10 -0700

Signed-off-by: Li Qiang <address@hidden>
---
 hw/vfio/platform.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
index 5992fe7..6a4fd7b 100644
--- a/hw/vfio/platform.c
+++ b/hw/vfio/platform.c
@@ -80,6 +80,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,
         intp->unmask = g_malloc0(sizeof(EventNotifier));
         ret = event_notifier_init(intp->unmask, 0);
         if (ret) {
+            event_notifier_cleanup(intp->interrupt);
             g_free(intp->interrupt);
             g_free(intp->unmask);
             g_free(intp);
-- 
1.8.3.1




reply via email to

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