diff --git a/Misc/NEWS b/Misc/NEWS index f13310152b5..47dac374ed5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -80,6 +80,10 @@ Core and Builtins Library ------- +- Partial fix to issue #1731706: memory leak in Tkapp_Call when calling + from a thread different than the one that created the Tcl interpreter. + Patch by Robert Hancock. + - Issue #5132: Fixed trouble building extensions under Solaris with --enabled-shared activated. Initial patch by Dave Peterson. diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index c1060f6d4cb..d13690d360a 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1256,7 +1256,9 @@ Tkapp_CallProc(Tkapp_CallEvent *e, int flags) *(e->res) = Tkapp_CallResult(e->self); } LEAVE_PYTHON - done: + + Tkapp_CallDeallocArgs(objv, objStore, objc); +done: /* Wake up calling thread. */ Tcl_MutexLock(&call_mutex); Tcl_ConditionNotify(&e->done);