Skip to content

Commit 0ea055e

Browse files
serhiy-storchakaljfp
authored andcommitted
Fix unlikely potential reference leak in _locale._getdefaultlocale (pythonGH-145250)
It occurs in a code which perhaps never executed.
1 parent 9fbeae8 commit 0ea055e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Modules/_localemodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ _locale__getdefaultlocale_impl(PyObject *module)
567567
}
568568

569569
/* cannot determine the language code (very unlikely) */
570-
Py_INCREF(Py_None);
571570
return Py_BuildValue("Os", Py_None, encoding);
572571
}
573572
#endif

0 commit comments

Comments
 (0)