aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-02-23 08:07:57 -0800
committerDave Barach <openvpp@barachs.net>2021-02-23 21:11:02 +0000
commit4c6bbd7a9b2232324e8509ac22a5321e302dd3e3 (patch)
treeb5e97fa9d2e0ef78063d9a5d9894acef1d344f98 /src
parentd77325c0c43f270a1717d4d5b5acb94cdf674c1f (diff)
vcl: segment index leak on attach
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: If8840d455f8841264136adb19cc9a2046ba37b11
Diffstat (limited to 'src')
-rw-r--r--src/vcl/vcl_private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcl/vcl_private.c b/src/vcl/vcl_private.c
index 3b30d1753c2..d6d7381e40b 100644
--- a/src/vcl/vcl_private.c
+++ b/src/vcl/vcl_private.c
@@ -334,7 +334,7 @@ vcl_segment_attach (u64 segment_handle, char *name, ssvm_segment_type_t type,
clib_rwlock_writer_unlock (&vcm->segment_table_lock);
- vec_reset_length (a->new_segment_indices);
+ vec_free (a->new_segment_indices);
return 0;
}