lua fix lua_close on os.exit(0)

Change-Id: Ib225ecf9ea64c95e438c4114b23239c118ab19a2
This commit is contained in:
William Wilgus 2019-08-05 21:25:01 -05:00
parent 1b41e6ec43
commit 951a614852

View file

@ -178,6 +178,8 @@ static void lua_atexit(void)
lua_pop(Ls, 1); /* put exit string on top of stack */ lua_pop(Ls, 1); /* put exit string on top of stack */
plugin_start(NULL); plugin_start(NULL);
} }
else
lua_close(Ls);
} }
_exit(0); /* don't call exit handler */ _exit(0); /* don't call exit handler */
} }