Merge pull request #340 from sanikoyes/Pr-missing-exitshr

add missing luaS_exitshr call
This commit is contained in:
云风
2015-09-14 18:05:56 +08:00

View File

@@ -611,6 +611,7 @@ int main (int argc, char **argv) {
result = lua_toboolean(L, -1); /* get result */
report(L, status);
lua_close(L);
luaS_exitshr();
return (result && status == LUA_OK) ? EXIT_SUCCESS : EXIT_FAILURE;
}