virtio-net: fix leaking of ctx array

Fixes: commit d45b897b11 ("virtio_net: allow specifying context for rx")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jason Wang 2017-07-07 19:56:09 +08:00 committed by David S. Miller
parent 0eaf83de7c
commit 55281621b6
1 changed files with 1 additions and 0 deletions

View File

@ -2229,6 +2229,7 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
kfree(names);
kfree(callbacks);
kfree(vqs);
kfree(ctx);
return 0;