diff options
| author | Joe Mistachkin <joe@mistachkin.com> | 2015-05-17 19:49:44 (GMT) |
|---|---|---|
| committer | Joe Mistachkin <joe@mistachkin.com> | 2015-05-17 19:49:44 (GMT) |
| commit | cfa827e791d953ccbd7175241f83f474fe11e86c (patch) | |
| tree | 2905f9e58003ed85727b6c497ff9b87b5b09d37b /generic/tclInt.h | |
| parent | 7dd3032cdff120e7a4ad166748e31b3148d875b9 (diff) | |
| parent | 3af5a880588f8973a7dba1d9a41a481d5a447a60 (diff) | |
| download | tcl-cfa827e791d953ccbd7175241f83f474fe11e86c.zip tcl-cfa827e791d953ccbd7175241f83f474fe11e86c.tar.gz tcl-cfa827e791d953ccbd7175241f83f474fe11e86c.tar.bz2 | |
Merge updates from trunk.
Diffstat (limited to 'generic/tclInt.h')
| -rw-r--r-- | generic/tclInt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index bcf2355..51d153b 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -4118,7 +4118,8 @@ MODULE_SCOPE void TclpFreeAllocCache(void *); AllocCache *cachePtr; \ if (((interp) == NULL) || \ ((cachePtr = ((Interp *)(interp))->allocCache), \ - (cachePtr->numObjects >= ALLOC_NOBJHIGH))) { \ + ((cachePtr->numObjects == 0) || \ + (cachePtr->numObjects >= ALLOC_NOBJHIGH)))) { \ TclThreadFreeObj(objPtr); \ } else { \ (objPtr)->internalRep.twoPtrValue.ptr1 = cachePtr->firstObjPtr; \ |
