aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2021-10-01 12:34:42 +0200
committerBeno�t Ganne <bganne@cisco.com>2021-10-05 11:52:10 +0000
commitefd967faff168d037066b6e6824d2a579adbef93 (patch)
treeb30a718c2423a2eea2e532db9814387a0165b473 /src/vnet/devices
parentede7143386ce1cf086066eec06dbdf7cf6d4cfee (diff)
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 <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices')
-rw-r--r--src/vnet/devices/tap/tap.c1
1 files changed, 1 insertions, 0 deletions
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);