Skip to content

Commit

Permalink
Close Lua state before exiting redbean worker to allow GC to collect (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulchenko authored Nov 11, 2023
1 parent cdbd10c commit 7138399
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tool/net/redbean.c
Original file line number Diff line number Diff line change
Expand Up @@ -6556,6 +6556,7 @@ static int ExitWorker(void) {
monitorth = 0;
}
}
LuaDestroy();
_Exit(0);
}

Expand Down

0 comments on commit 7138399

Please sign in to comment.