diff mbox series

[v2,11/27] vhost-user-scsi: also free the gtree

Message ID 20170919165226.23022-12-marcandre.lureau@redhat.com
State New
Headers show
Series vhost-user-scsi: code clean-up | expand

Commit Message

Marc-André Lureau Sept. 19, 2017, 4:52 p.m. UTC
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 contrib/vhost-user-scsi/vhost-user-scsi.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c
index e3ae2bbd72..17f676bf00 100644
--- a/contrib/vhost-user-scsi/vhost-user-scsi.c
+++ b/contrib/vhost-user-scsi/vhost-user-scsi.c
@@ -693,6 +693,7 @@  static void vdev_scsi_free(vhost_scsi_dev_t *vdev_scsi)
     }
 
     g_main_loop_unref(vdev_scsi->loop);
+    g_tree_destroy(vdev_scsi->fdmap);
     g_free(vdev_scsi);
 }