vcl: segment index leak on attach 13/31413/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 23 Feb 2021 16:07:57 +0000 (08:07 -0800)
committerDave Barach <openvpp@barachs.net>
Tue, 23 Feb 2021 21:11:02 +0000 (21:11 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: If8840d455f8841264136adb19cc9a2046ba37b11

src/vcl/vcl_private.c

index 3b30d17..d6d7381 100644 (file)
@@ -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;
 }