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 bef2815 commit 42a4359Copy full SHA for 42a4359
Modules/_tkinter.c
@@ -3549,11 +3549,13 @@ PyInit__tkinter(void)
3549
if (!ret && GetLastError() == ERROR_ENVVAR_NOT_FOUND) {
3550
str_path = _get_tcl_lib_path();
3551
if (str_path == NULL && PyErr_Occurred()) {
3552
+ Py_DECREF(m);
3553
return NULL;
3554
}
3555
if (str_path != NULL) {
3556
wcs_path = PyUnicode_AsWideCharString(str_path, NULL);
3557
if (wcs_path == NULL) {
3558
3559
3560
3561
SetEnvironmentVariableW(L"TCL_LIBRARY", wcs_path);
0 commit comments