summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/lua/rocklua.c2
1 files changed, 2 insertions, 0 deletions
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 */
}