mirror of
https://github.com/python/cpython.git
synced 2026-06-30 22:56:21 -04: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:
committed by
GitHub
parent
03244b9f04
commit
acd402ecdb
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user