Skip to content

Commit

Permalink
pythongh-71592: Fix a leak in tkinter.Tk destructor when _debug is tr…
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored May 6, 2024
1 parent 325a1da commit 67ce820
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2972,6 +2972,7 @@ Tkapp_Dealloc(PyObject *self)
ENTER_TCL
Tcl_DeleteInterp(Tkapp_Interp(self));
LEAVE_TCL
Py_XDECREF(((TkappObject *)self)->trace);
PyObject_Free(self);
Py_DECREF(tp);
DisableEventHook();
Expand Down

0 comments on commit 67ce820

Please sign in to comment.