mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() (GH-28862)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user