mirror of
https://github.com/python/cpython.git
synced 2026-04-13 23:31:02 +00:00
gh-145376: Fix various reference leaks (GH-145377)
This commit is contained in:
parent
246227392c
commit
bd13cc09fa
6 changed files with 6 additions and 1 deletions
|
|
@ -1762,7 +1762,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