https://github.com/python/cpython/commit/67ce820d51d7f4bb7068ed560f4f2e2d83dd30d5
commit: 67ce820d51d7f4bb7068ed560f4f2e2d83dd30d5
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-05-06T19:25:20Z
summary:

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

files:
M Modules/_tkinter.c

diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 163449a927cf18..fc8af244adf4ed 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -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();

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to