qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 8/9] virtio: Remove unneeded g_free() check in virti


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH 8/9] virtio: Remove unneeded g_free() check in virtio_cleanup()
Date: Fri, 10 Feb 2012 11:34:12 +0000

From: Luiz Capitulino <address@hidden>

Signed-off-by: Luiz Capitulino <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
 hw/virtio.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/hw/virtio.c b/hw/virtio.c
index 74cc038..064aecf 100644
--- a/hw/virtio.c
+++ b/hw/virtio.c
@@ -845,8 +845,7 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f)
 void virtio_cleanup(VirtIODevice *vdev)
 {
     qemu_del_vm_change_state_handler(vdev->vmstate);
-    if (vdev->config)
-        g_free(vdev->config);
+    g_free(vdev->config);
     g_free(vdev->vq);
     g_free(vdev);
 }
-- 
1.7.8.3




reply via email to

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