We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5383956 commit 289cf0fCopy full SHA for 289cf0f
Modules/_tkinter.c
@@ -3555,11 +3555,13 @@ PyInit__tkinter(void)
3555
if (!ret && GetLastError() == ERROR_ENVVAR_NOT_FOUND) {
3556
str_path = _get_tcl_lib_path();
3557
if (str_path == NULL && PyErr_Occurred()) {
3558
+ Py_DECREF(m);
3559
return NULL;
3560
}
3561
if (str_path != NULL) {
3562
wcs_path = PyUnicode_AsWideCharString(str_path, NULL);
3563
if (wcs_path == NULL) {
3564
3565
3566
3567
SetEnvironmentVariableW(L"TCL_LIBRARY", wcs_path);
0 commit comments