Skip to content

Commit 5498eba

Browse files
authored
gh-150374: Fix double release of import lock in lazy import reification (#150376)
1 parent fbeafc0 commit 5498eba

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix double release of the import lock on lazy import reification errors.

Python/import.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3928,7 +3928,6 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
39283928
return NULL;
39293929
}
39303930
else if (PySet_Add(importing, lazy_import) < 0) {
3931-
_PyImport_ReleaseLock(interp);
39323931
goto error;
39333932
}
39343933

0 commit comments

Comments
 (0)