gh-71592: Fix a leak in tkinter.Tk destructor when _debug is true (GH-118664)

This commit is contained in:
Serhiy Storchaka 2024-05-06 22:25:20 +03:00 committed by GitHub
parent 325a1da18d
commit 67ce820d51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();