vhost-user: fix memory leak
commita38a498dc1dc2d101a4958b6bfbf921df478c069
authorlinzhecheng <linzhecheng@huawei.com>
Tue, 13 Feb 2018 05:08:37 +0000 (13 13:08 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Mar 2018 14:05:26 +0000 (1 16:05 +0200)
tree4549b18286f610ca41afd26630b16948212570ba
parent8cb340c613ee3e626b070e0429c589f8a60ac657
vhost-user: fix memory leak

g_free() was moved from vhost_net_cleanup in commit e6bcb1b, so we should
free net after vhost_net_cleanup

Signed-off-by: linzhecheng <linzhecheng@huawei.com>
Reviewed-by: Marc-André Lureau < marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
net/vhost-user.c