Skip to content

Commit ef86d12

Browse files
committed
Closes #15396: memory leak in tkinter
1 parent 29e49d6 commit ef86d12

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Doc/ACKS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ [email protected]), and we'll be glad to correct the problem.
120120
* Thomas Lamb
121121
* Detlef Lannert
122122
* Piers Lauder
123+
* Julia Lawall
123124
* Glyph Lefkowitz
124125
* Robert Lehmann
125126
* Marc-André Lemburg

Modules/_tkinter.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3135,8 +3135,10 @@ PyInit__tkinter(void)
31353135

31363136
PyDict_SetItemString(d, "TkappType", (PyObject *)&Tkapp_Type);
31373137

3138-
if (PyType_Ready(&Tktt_Type) < 0)
3138+
if (PyType_Ready(&Tktt_Type) < 0) {
3139+
Py_DECREF(m);
31393140
return NULL;
3141+
}
31403142
PyDict_SetItemString(d, "TkttType", (PyObject *)&Tktt_Type);
31413143

31423144
Py_TYPE(&PyTclObject_Type) = &PyType_Type;

0 commit comments

Comments
 (0)