vhost: fix resource leak in error handling
commit8617343faae6ba7e916137c6c9e3ef22c00565d8
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Jun 2014 15:55:22 +0000 (18 18:55 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Jun 2014 14:37:59 +0000 (23 17:37 +0300)
tree0895ff0608850d9d7f49292be3e8272e30fb0b78
parent7145872ed373d75c4d5de40e55248a0840a15f70
vhost: fix resource leak in error handling

vhost_verify_ring_mappings leaks mappings on error.
Fix this up.

Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c