summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2020-01-30 17:09:47 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2020-01-30 17:09:47 +0100
commit4d33f144615af8707e7b56baebee82695918dbdc (patch)
treec12d4c1f90de0a65d5028a6e7c9a41bf59074b86
parentf1e21ec5c9e0d2ce070a5ae9331617236e7088a4 (diff)
[HICN-495] Removed wrong free before returnin the data
Change-Id: Ibad8a7f737b30c3c719f5ccbc0635b2948affdce Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
-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: