From efd967faff168d037066b6e6824d2a579adbef93 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Fri, 1 Oct 2021 12:34:42 +0200 Subject: tap: free the tap_fds vec on interface deletion Type: fix Tap fds are stored in vector array but deleting tap was not freeing this vector. This patch fixes it. Change-Id: I5228e3b9f432c69cf2656b2ee7402360d775964b Signed-off-by: Mohsin Kazmi --- src/vnet/devices/tap/tap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/devices/tap') diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c index 8bd03aa178e..2cca1fb7771 100644 --- a/src/vnet/devices/tap/tap.c +++ b/src/vnet/devices/tap/tap.c @@ -106,6 +106,7 @@ tap_free (vlib_main_t * vm, virtio_if_t * vif) error: vec_foreach_index (i, vif->tap_fds) close (vif->tap_fds[i]); + vec_free (vif->tap_fds); vec_free (vif->vhost_fds); vec_free (vif->rxq_vrings); vec_free (vif->txq_vrings); -- cgit 1.2.3-korg