virtio: Fix memory leaks reported by Coverity
commit4ed7b2c3a78f785a1bcbe575e08c379b166723e3
authorStefan Weil <sw@weilnetz.de>
Sat, 14 Mar 2015 10:45:18 +0000 (14 11:45 +0100)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 16 Mar 2015 08:02:24 +0000 (16 13:32 +0530)
tree423f1ab1cd63f838b7af1dcc38293f70cc5d3736
parent25ee9a7fa3f4e09fde48bb184447ff5651ed5fd8
virtio: Fix memory leaks reported by Coverity

All four leaks are similar, so fix them in one patch.
Success path was not doing memory free.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-local.c