Issue #21226: fix a ref leak.
This commit is contained in:
parent
2e8234a597
commit
58cfdd8af8
|
@ -904,6 +904,7 @@ PyImport_ExecCodeModuleObject(PyObject *name, PyObject *co, PyObject *pathname,
|
|||
&PyId__fix_up_module,
|
||||
d, name, pathname, cpathname, NULL);
|
||||
if (res != NULL) {
|
||||
Py_DECREF(res);
|
||||
res = exec_code_in_module(name, d, co);
|
||||
}
|
||||
return res;
|
||||
|
|
Loading…
Reference in New Issue