Skip to content

Commit fc3242b

Browse files
committed
lua_close()
1 parent 04cfd9a commit fc3242b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/augtool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,10 @@ static int main_loop(void) {
857857
if (use_lua) {
858858
if (luaL_dofile(LS, inputfile)) {
859859
printf("%s\n", lua_tostring(LS, -1));
860+
lua_close(LS);
860861
return -1;
861862
}
863+
lua_close(LS);
862864
return 0;
863865
} else {
864866
if (freopen(inputfile, "r", stdin) == NULL) {

0 commit comments

Comments
 (0)