Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() (GH-28862)

This commit is contained in:
Serhiy Storchaka 2021-10-11 11:57:27 +03:00 committed by GitHub
parent 15188b115a
commit 9883ca498d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ _PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *fp)
if (PySys_Audit("import", "OOOOO", name_unicode, path,
Py_None, Py_None, Py_None) < 0) {
return NULL;
goto error;
}
#ifdef MS_WINDOWS