diff --git a/plugins/filter_lua/lua.c b/plugins/filter_lua/lua.c index bb7bb566ab4..89aa8cd478e 100644 --- a/plugins/filter_lua/lua.c +++ b/plugins/filter_lua/lua.c @@ -77,6 +77,7 @@ static int cb_lua_init(struct flb_filter_instance *f_ins, } if (ret == -1) { + flb_luajit_destroy(ctx->lua); lua_config_destroy(ctx); return -1; }