Skip to content

Commit 3465b36

Browse files
author
guilherme.polo
committed
Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
from a thread different than the one that created the Tcl interpreter. git-svn-id: http://svn.python.org/projects/python/trunk@69376 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent b7bf07c commit 3465b36

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ Core and Builtins
149149
Library
150150
-------
151151

152+
- Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
153+
from a thread different than the one that created the Tcl interpreter.
154+
Patch by Robert Hancock.
155+
152156
- Issue #1520877: Now distutils.sysconfig reads $AR from the
153157
environment/Makefile. Patch by Douglas Greiman.
154158

Modules/_tkinter.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,9 @@ Tkapp_CallProc(Tkapp_CallEvent *e, int flags)
12561256
*(e->res) = Tkapp_CallResult(e->self);
12571257
}
12581258
LEAVE_PYTHON
1259-
done:
1259+
1260+
Tkapp_CallDeallocArgs(objv, objStore, objc);
1261+
done:
12601262
/* Wake up calling thread. */
12611263
Tcl_MutexLock(&call_mutex);
12621264
Tcl_ConditionNotify(&e->done);

0 commit comments

Comments
 (0)