]> 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>
Tue, 5 Aug 2014 18:57:04 +0000 (13:57 -0500)
commit8dedaf0f7037baa6c5b0b06a6eccfb120dcead44
tree519e06226e4ce999c916101310063acbe945c822
parenteb3eb3dd36f2c71146f744b93b8a8d1d81e83e4b
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