summaryrefslogtreecommitdiffstats
path: root/src/vlibmemory
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-12-05 20:10:53 -0800
committerFlorin Coras <florin.coras@gmail.com>2019-12-06 15:10:32 +0000
commitb0384230d95d9de5e5fec0a311b8644c99f85c31 (patch)
treee9c469a1681aa5c0b9d74a2abe1a54736aca0b44 /src/vlibmemory
parent7b22df06fc14b9edf178eaff31d348ba7c360125 (diff)
api: fix free socket process args
Type: fix Change-Id: I910be067de6ed65790d25cc95a3d8b5b66680567 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vlibmemory')
-rw-r--r--src/vlibmemory/vlib_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlibmemory/vlib_api.c b/src/vlibmemory/vlib_api.c
index afc2e401cd9..05652fa2244 100644
--- a/src/vlibmemory/vlib_api.c
+++ b/src/vlibmemory/vlib_api.c
@@ -388,6 +388,7 @@ vl_api_clnt_process (vlib_main_t * vm, vlib_node_runtime_t * node,
a = pool_elt_at_index (socket_main.process_args, event_data[i]);
vl_socket_process_api_msg (a->clib_file, a->regp,
(i8 *) a->data);
+ a = pool_elt_at_index (socket_main.process_args, event_data[i]);
vec_free (a->data);
pool_put (socket_main.process_args, a);
}