qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 05/23] vhost: call vhost_log_put() on cleanup


From: marcandre . lureau
Subject: [Qemu-devel] [PATCH v2 05/23] vhost: call vhost_log_put() on cleanup
Date: Fri, 24 Jun 2016 15:50:52 +0200

From: Marc-André Lureau <address@hidden>

Make sure the log is being released on cleanup and the structure
cleared.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 hw/virtio/vhost.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index 82290a3..ce930cb 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -1096,6 +1096,7 @@ void vhost_dev_cleanup(struct vhost_dev *hdev)
     g_free(hdev->mem);
     g_free(hdev->mem_sections);
     hdev->vhost_ops->vhost_backend_cleanup(hdev);
+    vhost_log_put(hdev, false);
     QLIST_REMOVE(hdev, entry);
 }
 
-- 
2.9.0




reply via email to

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