]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost: fix resource leak in error handling
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Jun 2014 15:55:22 +0000 (18:55 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 16 Jul 2014 00:28:01 +0000 (19:28 -0500)
commit79bd7781dd0cc4583902f67661cbad8d4d9eecfc
tree655f0cd750ab314ea06a56d43506361f33b9210a
parent36afdba00af1ebcf311fa17b8c77402a19fe4492
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>
(cherry picked from commit 8617343faae6ba7e916137c6c9e3ef22c00565d8)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/vhost.c