aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/jim.c b/jim.c
index ec855a2..fba53ac 100644
--- a/jim.c
+++ b/jim.c
@@ -5820,10 +5820,11 @@ void Jim_FreeInterp(Jim_Interp *i)
Jim_DecrRefCount(i, i->nullScriptObj);
Jim_DecrRefCount(i, i->currentFilenameObj);
+ Jim_FreeHashTable(&i->commands);
+
/* This will disard any cached commands */
Jim_InterpIncrProcEpoch(i);
- Jim_FreeHashTable(&i->commands);
#ifdef JIM_REFERENCES
Jim_FreeHashTable(&i->references);
#endif