Fix: leaking file descriptors

(cherry picked from commit 495d73a67f)
This commit is contained in:
Rubidium
2021-05-09 23:00:36 +02:00
committed by Jonathan G Rennison
parent 7c4d803265
commit 2606f5409a
2 changed files with 9 additions and 2 deletions

View File

@@ -1044,6 +1044,7 @@ DEF_CONSOLE_CMD(ConExec)
}
if (_script_current_depth == 11) {
FioFCloseFile(script_file);
IConsoleError("Maximum 'exec' depth reached; script A is calling script B is calling script C ... more than 10 times.");
return true;
}