Skip to content

Commit

Permalink
Free the passed in lua context instead of the global
Browse files Browse the repository at this point in the history
  • Loading branch information
madolson committed Jan 9, 2025
1 parent e1db553 commit 4bcefdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void scriptingInit(int setup) {
void freeLuaScriptsSync(dict *lua_scripts, list *lua_scripts_lru_list, lua_State *lua) {
dictRelease(lua_scripts);
listRelease(lua_scripts_lru_list);
lua_gc(lctx.lua, LUA_GCCOLLECT, 0);
lua_gc(lua, LUA_GCCOLLECT, 0);
lua_close(lua);

#if !defined(USE_LIBC)
Expand Down

0 comments on commit 4bcefdc

Please sign in to comment.