vhost: fix a memory leak
commit08b9e0ba623c4468fe94026a9bdd086526ef62f0
authorPeng Hao <peng.hao2@zte.com.cn>
Tue, 4 Jul 2017 22:33:32 +0000 (5 06:33 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Aug 2017 21:13:25 +0000 (2 00:13 +0300)
treef710abd9759b3e184c8e3ae80fef88044eacc824
parent2cef91cf4922cb1ade8882c1097966b090467bbb
vhost: fix a memory leak

vhost exists a call for g_file_get_contents, but not call g_free.

Signed-off-by: Peng Hao<peng.hao2@zte.com.cn>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/virtio/vhost-backend.c