mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix missing DECREF of mod. (#4749)
This commit is contained in:
parent
dd431b32f4
commit
11cc289490
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue