Skip to content

Commit

Permalink
filter_lua: Plug a memory leak on loading for an invalid lua script
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Oct 31, 2023
1 parent cf1c738 commit e31cbdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/filter_lua/lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e31cbdb

Please sign in to comment.