diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-02-09 11:29:42 -0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-02-10 10:44:52 +0000 |
commit | 6f79e06b35b26a1beda6f6dc4dd02588887597e9 (patch) | |
tree | 58639897419989bfd075b256ff48aabb38a99057 /hw/virtio.c | |
parent | da8d605733c9b368230a716cc71c7915902387db (diff) |
virtio: Remove unneeded g_free() check in virtio_cleanup()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/virtio.c')
-rw-r--r-- | hw/virtio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/virtio.c b/hw/virtio.c index 74cc038af9..064aecf553 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); } |