Skip to content

Commit 86c8467

Browse files
[3.14] Fix unlikely potential reference leak in _locale._getdefaultlocale (GH-145250) (GH-145302)
It occurs in a code which perhaps never executed. (cherry picked from commit 6ea84b2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent a58ea8c commit 86c8467

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/_localemodule.c

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

581581
/* cannot determine the language code (very unlikely) */
582-
Py_INCREF(Py_None);
583582
return Py_BuildValue("Os", Py_None, encoding);
584583
}
585584
#endif

0 commit comments

Comments
 (0)