diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-06-30 21:41:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-06-30 21:41:18 (GMT) |
commit | 73484694b551e1a1332066df5c5e11065e308c21 (patch) | |
tree | d4a008c1cca0c1d8fb3f5fc7c741217ebb7534be /generic/tclExecute.c | |
parent | 6af49e65ad4e40ab1d8f93821728698b1af3f58b (diff) | |
download | tcl-73484694b551e1a1332066df5c5e11065e308c21.zip tcl-73484694b551e1a1332066df5c5e11065e308c21.tar.gz tcl-73484694b551e1a1332066df5c5e11065e308c21.tar.bz2 |
Consistancy in refcount management.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 5b053a6..6fc6b6b 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -1649,7 +1649,7 @@ FreeExprCodeInternalRep( ByteCode *codePtr = objPtr->internalRep.twoPtrValue.ptr1; objPtr->typePtr = NULL; - if (codePtr->refCount-- < 2) { + if (codePtr->refCount-- <= 1) { TclCleanupByteCode(codePtr); } } |