stats: add vlib_stats_free_string_vector

Type: improvement
Change-Id: Ifa9f908b24b5fe867826601d32eeb4f0d639fbeb
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vlib/stats/stats.c b/src/vlib/stats/stats.c
index e3a1a8a..b7743ec 100644
--- a/src/vlib/stats/stats.c
+++ b/src/vlib/stats/stats.c
@@ -348,6 +348,13 @@
   vlib_stats_segment_unlock ();
 }
 
+void
+vlib_stats_free_string_vector (vlib_stats_string_vector_t *sv)
+{
+  vlib_stats_header_t *sh = vec_header (*sv);
+  vlib_stats_remove_entry (sh->entry_index);
+}
+
 u32
 vlib_stats_add_counter_vector (char *fmt, ...)
 {