Skip to content

Commit 67ce820

Browse files
gh-71592: Fix a leak in tkinter.Tk destructor when _debug is true (GH-118664)
1 parent 325a1da commit 67ce820

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_tkinter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,6 +2972,7 @@ Tkapp_Dealloc(PyObject *self)
29722972
ENTER_TCL
29732973
Tcl_DeleteInterp(Tkapp_Interp(self));
29742974
LEAVE_TCL
2975+
Py_XDECREF(((TkappObject *)self)->trace);
29752976
PyObject_Free(self);
29762977
Py_DECREF(tp);
29772978
DisableEventHook();

0 commit comments

Comments
 (0)