mirror of
https://github.com/python/cpython.git
synced 2026-06-28 11:50:50 +00:00
[3.15] gh-150374: Fix double release of import lock in lazy import reification (GH-150376) (#150378)
gh-150374: Fix double release of import lock in lazy import reification (GH-150376)
(cherry picked from commit 5498eba545)
Co-authored-by: pengyu lee <lipengyu@kylinos.cn>
This commit is contained in:
parent
03244b9f04
commit
acd402ecdb
2 changed files with 1 additions and 1 deletions
|
|
@ -3934,7 +3934,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