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,
|
&PyId__fix_up_module,
|
||||||
d, name, pathname, cpathname, NULL);
|
d, name, pathname, cpathname, NULL);
|
||||||
if (res != NULL) {
|
if (res != NULL) {
|
||||||
|
Py_DECREF(res);
|
||||||
res = exec_code_in_module(name, d, co);
|
res = exec_code_in_module(name, d, co);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue