gh-150374: Fix double release of import lock in lazy import reification (#150376)

This commit is contained in:
pengyu lee 2026-05-25 17:09:38 +08:00 committed by GitHub
parent fbeafc062e
commit 5498eba545
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View file

@ -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;
}