fix(test): fix issues detected by running unittests in ASAN/UBSAN

This commit is contained in:
bfredl
2023-01-30 14:46:28 +01:00
parent d6d6ab3f8e
commit 42999a8d64
3 changed files with 5 additions and 5 deletions

View File

@@ -821,6 +821,9 @@ void nlua_init(char **argv, int argc, int lua_arg0)
luaL_openlibs(lstate);
if (!nlua_state_init(lstate)) {
os_errmsg(_("E970: Failed to initialize builtin lua modules\n"));
#ifdef EXITFREE
nlua_common_free_all_mem(lstate);
#endif
os_exit(1);
}