diff options
author | Steve Bennett <steveb@workware.net.au> | 2016-09-05 09:35:18 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-09-05 09:35:18 +1000 |
commit | 1b79972ccb35d9fe6174c5c6f045a9b2fcbe0af8 (patch) | |
tree | 7815b412c76aca1441bd300054c4c5f8c49517f4 /jim.c | |
parent | e5dc0167b5143048bf2f2d03703bcbdb287a60be (diff) | |
download | jimtcl-1b79972ccb35d9fe6174c5c6f045a9b2fcbe0af8.zip jimtcl-1b79972ccb35d9fe6174c5c6f045a9b2fcbe0af8.tar.gz jimtcl-1b79972ccb35d9fe6174c5c6f045a9b2fcbe0af8.tar.bz2 |
Fix a crash due to cached local command resolution
When a 'local' command is deleted, the proc epoch needs
to increase to ensure that subsequent lookups are re-resolved.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r-- | jim.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4991,8 +4991,8 @@ static int JimDeleteLocalProcs(Jim_Interp *interp, Jim_Stack *localCommands) } else { Jim_DeleteHashEntry(ht, fqname); - Jim_InterpIncrProcEpoch(interp); } + Jim_InterpIncrProcEpoch(interp); } Jim_DecrRefCount(interp, cmdNameObj); JimFreeQualifiedName(interp, fqObjName); |