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