summaryrefslogtreecommitdiffstats
path: root/src/plugins/bapi/bapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/bapi/bapi.c')
-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;
}