tap: free the tap_fds vec on interface deletion
[vpp.git] / src / vnet / devices / tap / tap.c
index 8bd03aa..2cca1fb 100644 (file)
@@ -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);