Close Lua state before exiting redbean worker to allow GC to collect (#941)

This commit is contained in:
Paul Kulchenko 2023-11-10 18:37:00 -08:00 committed by GitHub
parent cdbd10c9d0
commit 7138399f96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6556,6 +6556,7 @@ static int ExitWorker(void) {
monitorth = 0;
}
}
LuaDestroy();
_Exit(0);
}