vhost-user: fix memory leak
g_free() was moved from vhost_net_cleanup in commit e6bcb1b6, so we should free net after vhost_net_cleanup Signed-off-by: Nlinzhecheng <linzhecheng@huawei.com> Reviewed-by: Marc-André Lureau < marcandre.lureau@redhat.com> Reviewed-by: NMichael S. Tsirkin <mst@redhat.com> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com> Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
Showing
想要评论请 注册 或 登录