Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
ede7143
)
tap: free the tap_fds vec on interface deletion
28/33928/2
author
Mohsin Kazmi
<sykazmi@cisco.com>
Fri, 1 Oct 2021 10:34:42 +0000
(12:34 +0200)
committer
Beno�t Ganne
<bganne@cisco.com>
Tue, 5 Oct 2021 11:52:10 +0000
(11:52 +0000)
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>
src/vnet/devices/tap/tap.c
patch
|
blob
|
history
diff --git
a/src/vnet/devices/tap/tap.c
b/src/vnet/devices/tap/tap.c
index
8bd03aa
..
2cca1fb
100644
(file)
--- 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);