qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 10/24] vhost: call vhost_log_put() on cleanup


From: marcandre . lureau
Subject: [Qemu-devel] [PATCH 10/24] vhost: call vhost_log_put() on cleanup
Date: Tue, 21 Jun 2016 12:02:38 +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 febf64f..237db77 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -1105,6 +1105,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.7.4




reply via email to

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