summaryrefslogtreecommitdiffstats
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
committerDamjan Marion <dmarion@me.com>2018-10-22 08:27:17 +0000
commit8254018c21bbdbbc11225ebc444b1d072606caf7 (patch)
tree7f6a9989040e3480cce09910b9f3a6b6a76db899 /src/vpp-api/client/stat_client.c
parentbe5a5dd904d4d25857c53a4b5dee7951f724e3e2 (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>
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)