aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/bapi
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2019-02-01 17:06:27 +0800
committerHongjun Ni <hongjun.ni@intel.com>2019-02-01 17:06:27 +0800
commitb27867055ba3a9545824f2c48862a072175e0e21 (patch)
treec9cc4eab02482c58d0027e5b35a49f7d0dc59b0a /src/plugins/bapi
parent6f12c2eed071663c8dd9b6d33abc96b1eb9a48bf (diff)
Fix reconnect failure issuev19.01-rc2
Change-Id: I6b809f4f025d9b2ce3bef2ef2c1a499758883b69 Signed-off-by: Xiaobo Chen <Xiaobo.Chen@tieto.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src/plugins/bapi')
-rw-r--r--src/plugins/bapi/bapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/bapi/bapi.c b/src/plugins/bapi/bapi.c
index 25939cf..49107ff 100644
--- a/src/plugins/bapi/bapi.c
+++ b/src/plugins/bapi/bapi.c
@@ -46,6 +46,7 @@ vapi_error_e bin_api_connect(const char *client_name, vapi_mode_e vapi_mode) {
if (VAPI_OK != rv) {
SC_LOG_DBG_MSG("error: connecting to vlib");
+ vapi_ctx_free(g_vapi_ctx);
return rv;
}