summaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src/hicn_plugin_api.c
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-01-30 18:16:46 +0000
committerGerrit Code Review <gerrit@fd.io>2020-01-30 18:16:46 +0000
commitd013cc961c1007cd6e4cfa26cfcb453cfbb4d4e9 (patch)
tree05fc7beec63681a9e07bd6c1b6544f9c40a51503 /ctrl/libhicnctrl/src/hicn_plugin_api.c
parent682bcaab3bcf34f55fbd2052e56d2c8c4ca74bdb (diff)
parent4d33f144615af8707e7b56baebee82695918dbdc (diff)
Merge "[HICN-495] Removed wrong free before returnin the data"
Diffstat (limited to 'ctrl/libhicnctrl/src/hicn_plugin_api.c')
-rw-r--r--ctrl/libhicnctrl/src/hicn_plugin_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctrl/libhicnctrl/src/hicn_plugin_api.c b/ctrl/libhicnctrl/src/hicn_plugin_api.c
index 70e0556a9..0b387404b 100644
--- a/ctrl/libhicnctrl/src/hicn_plugin_api.c
+++ b/ctrl/libhicnctrl/src/hicn_plugin_api.c
@@ -792,6 +792,9 @@ int _hc_route_list(hc_sock_t *s, hc_data_t **pdata, bool async) {
*pdata = data;
+ vapi_unlock();
+ return ret;
+
err_free:
free(data);
err: