summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-01 12:16:01 +0000
committerrubidium <rubidium@openttd.org>2009-09-01 12:16:01 +0000
commit50e794849a5bc221915372a075a9169e9cb58733 (patch)
treec1fa3a3d558ed29b84ff318467f370a945e2730b /src
parent317f34b3d23a714a067c3b4d3af5b45df066ed7c (diff)
downloadopenttd-50e794849a5bc221915372a075a9169e9cb58733.tar.xz
(svn r17341) -Fix: memory leak when trying to bankrupt the local company
Diffstat (limited to 'src')
-rw-r--r--src/economy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index c7c7f4bca..554aab30c 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -536,6 +536,7 @@ static void CompanyCheckBankrupt(Company *c)
* join another company (cheat) the "unowned" company can bankrupt. */
c->bankrupt_asked = MAX_UVALUE(CompanyMask);
c->bankrupt_timeout = 0x456;
+ free(cni);
break;
}