From 9734c0a494a0cb62bfb4bd9fff19086bd95ba5fa Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Mon, 22 Oct 2018 09:41:29 +0200 Subject: 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 (cherry picked from commit 8254018c21bbdbbc11225ebc444b1d072606caf7) --- src/vpp-api/client/stat_client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vpp-api/client/stat_client.h') diff --git a/src/vpp-api/client/stat_client.h b/src/vpp-api/client/stat_client.h index c1a0ecf4753..ef16e4246dc 100644 --- a/src/vpp-api/client/stat_client.h +++ b/src/vpp-api/client/stat_client.h @@ -38,6 +38,7 @@ int stat_segment_connect (char *socket_name); void stat_segment_disconnect (void); uint8_t **stat_segment_string_vector (uint8_t ** string_vector, char *string); int stat_segment_vec_len (void *vec); +void stat_segment_vec_free (void *vec); uint32_t *stat_segment_ls (uint8_t ** pattern); stat_segment_data_t *stat_segment_dump (uint32_t * counter_vec); stat_segment_data_t *stat_segment_dump_entry (uint32_t index); -- cgit 1.2.3-korg