mirror of
https://github.com/python/cpython.git
synced 2026-06-05 01:10:53 +00:00
gh-150374: Fix double release of import lock in lazy import reification (#150376)
This commit is contained in:
parent
fbeafc062e
commit
5498eba545
2 changed files with 1 additions and 1 deletions
|
|
@ -3928,7 +3928,6 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
|
|||
return NULL;
|
||||
}
|
||||
else if (PySet_Add(importing, lazy_import) < 0) {
|
||||
_PyImport_ReleaseLock(interp);
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue