8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30e572 commit 620716dCopy full SHA for 620716d
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