summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-05-09 23:00:36 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-10 16:03:31 +0200
commit495d73a67fe924eed5504003a3a5ba30758dcbc5 (patch)
treede9bc17ecb513bedcd00315e0f5b3151d95d2f6a /src/console_cmds.cpp
parent296194ad36c601cf12d215a65d84222bbdf4de61 (diff)
downloadopenttd-495d73a67fe924eed5504003a3a5ba30758dcbc5.tar.xz
Fix: leaking file descriptors
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 01c35ecf8..3929b44c1 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -939,6 +939,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;
}