mirror of
https://github.com/python/cpython.git
synced 2026-04-15 08:11:10 +00:00
[3.14] gh-145376: Fix various reference leaks (GH-145377) (GH-145712)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
05b074cf81
commit
6d9221c7d1
5 changed files with 5 additions and 1 deletions
|
|
@ -1759,7 +1759,7 @@ sys_getwindowsversion_impl(PyObject *module)
|
|||
PyObject *realVersion = _sys_getwindowsversion_from_kernel32();
|
||||
if (!realVersion) {
|
||||
if (!PyErr_ExceptionMatches(PyExc_WindowsError)) {
|
||||
return NULL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
PyErr_Clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue