mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +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 {
|
else {
|
||||||
|
Py_XDECREF(mod);
|
||||||
mod = import_find_and_load(abs_name);
|
mod = import_find_and_load(abs_name);
|
||||||
if (mod == NULL) {
|
if (mod == NULL) {
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue