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>
This commit is contained in:
Luiz Capitulino 2012-02-09 11:29:42 -02:00 committed by Stefan Hajnoczi
parent da8d605733
commit 6f79e06b35

View File

@ -845,7 +845,6 @@ 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->vq);
g_free(vdev);