Commit 11cc2894 authored by Neil Schemenauer's avatar Neil Schemenauer Committed by GitHub

Fix missing DECREF of mod. (#4749)

parent dd431b32
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment