diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt index b64c65016c4..5636e057140 100644 --- a/Doc/ACKS.txt +++ b/Doc/ACKS.txt @@ -121,6 +121,7 @@ docs@python.org), and we'll be glad to correct the problem. * Thomas Lamb * Detlef Lannert * Piers Lauder + * Julia Lawall * Glyph Lefkowitz * Robert Lehmann * Marc-André Lemburg diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 630ce7214f1..f6cd88d69c6 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -3133,8 +3133,10 @@ PyInit__tkinter(void) PyDict_SetItemString(d, "TkappType", (PyObject *)&Tkapp_Type); - if (PyType_Ready(&Tktt_Type) < 0) + if (PyType_Ready(&Tktt_Type) < 0) { + Py_DECREF(m); return NULL; + } PyDict_SetItemString(d, "TkttType", (PyObject *)&Tktt_Type); Py_TYPE(&PyTclObject_Type) = &PyType_Type;