mirror of https://github.com/python/cpython
Fix missing DECREF of mod. (#4749)
This commit is contained in:
parent
dd431b32f4
commit
11cc289490
|
@ -1735,6 +1735,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
|
|||
}
|
||||
}
|
||||
else {
|
||||
Py_XDECREF(mod);
|
||||
mod = import_find_and_load(abs_name);
|
||||
if (mod == NULL) {
|
||||
goto error;
|
||||
|
|
Loading…
Reference in New Issue