filter_lua: remove context on VM creation failure (CID 183628)
@@ -358,6 +358,7 @@ static int cb_lua_init(struct flb_filter_instance *f_ins,
/* Create LuaJIT state/vm */
lj = flb_luajit_create(config);
if (!lj) {
+ lua_config_destroy(ctx);
return -1;
}
ctx->lua = lj;
