virtio: Fix memory leaks reported by Coverity
commit6c936b74235c2d920790a0ff9feb00b07db239c9
authorStefan Weil <sw@weilnetz.de>
Sat, 14 Mar 2015 10:45:18 +0000 (14 11:45 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 Mar 2015 14:29:51 +0000 (16 15:29 +0100)
tree896bf4e6327ae8f058fcc0c2c11c1f07560561da
parent9e0f5b8108e248b78444c9a2ec41a8309825736c
virtio: Fix memory leaks reported by Coverity

All four leaks are similar, so fix them in one patch.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/9pfs/virtio-9p-local.c