summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2014-07-18 22:05:16 (GMT)
committerdkf <dkf@noemail.net>2014-07-18 22:05:16 (GMT)
commit5e2da264864ec35902783211500b9524d833251a (patch)
tree3c97192d4c83299592862d178699f058113c049a /generic/tclOO.c
parent0e8cb8056ba38cbd03e63536dd1ecf0f96d17f5f (diff)
downloadtcl-5e2da264864ec35902783211500b9524d833251a.zip
tcl-5e2da264864ec35902783211500b9524d833251a.tar.gz
tcl-5e2da264864ec35902783211500b9524d833251a.tar.bz2
[75b8433707] Plug a subtle memory leak in TclOO.
FossilOrigin-Name: 23be32a082dfd5845aa4d438185f686f56b1d3e5
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r--generic/tclOO.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c
index de00733..74de6d0 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.c
@@ -1280,6 +1280,7 @@ TclOORemoveFromInstances(
removeInstance:
if (Deleted(clsPtr->thisPtr)) {
+ DelRef(clsPtr->instances.list[i]);
clsPtr->instances.list[i] = NULL;
} else {
clsPtr->instances.num--;