aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/client/stat_client.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-10-22 09:41:29 +0200
committerOle Trøan <otroan@employees.org>2018-10-22 16:34:34 +0000
commit9734c0a494a0cb62bfb4bd9fff19086bd95ba5fa (patch)
tree26676a3cecb9bf7c3214d4458706e734475df175 /src/vpp-api/client/stat_client.c
parent6a7103de937ccf3c8efae0357b12db3b6f8f08b4 (diff)
stats: Add wrapper for vec_free
The result vector from stat_segment_ls must be freed by the caller. Add wrapper for non-C language bindings. Change-Id: I7eee7f80ec98b41696d354add47b26978e12ef0f Signed-off-by: Ole Troan <ot@cisco.com> (cherry picked from commit 8254018c21bbdbbc11225ebc444b1d072606caf7)
Diffstat (limited to 'src/vpp-api/client/stat_client.c')
-rw-r--r--src/vpp-api/client/stat_client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vpp-api/client/stat_client.c b/src/vpp-api/client/stat_client.c
index 1c099edc789..0042a2be4e4 100644
--- a/src/vpp-api/client/stat_client.c
+++ b/src/vpp-api/client/stat_client.c
@@ -364,6 +364,12 @@ stat_segment_vec_len (void *vec)
return vec_len (vec);
}
+void
+stat_segment_vec_free (void *vec)
+{
+ vec_free (vec);
+}
+
/* Create a vector from a string (or add to existing) */
u8 **
stat_segment_string_vector (u8 ** string_vector, char *string)