From 951a614852118b41aa02f5df99ee0a75a677b7da Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 5 Aug 2019 21:25:01 -0500 Subject: lua fix lua_close on os.exit(0) Change-Id: Ib225ecf9ea64c95e438c4114b23239c118ab19a2 --- apps/plugins/lua/rocklua.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/lua') diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c index eb48fa2799..cb2b6eb161 100644 --- a/apps/plugins/lua/rocklua.c +++ b/apps/plugins/lua/rocklua.c @@ -178,6 +178,8 @@ static void lua_atexit(void) lua_pop(Ls, 1); /* put exit string on top of stack */ plugin_start(NULL); } + else + lua_close(Ls); } _exit(0); /* don't call exit handler */ } -- cgit