From: Mohsin Kazmi Date: Fri, 1 Oct 2021 10:34:42 +0000 (+0200) Subject: tap: free the tap_fds vec on interface deletion X-Git-Tag: v22.06-rc0~456 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=efd967faff168d037066b6e6824d2a579adbef93;p=vpp.git 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 --- 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);