Commit 58cfdd8a authored by Eric Snow's avatar Eric Snow

Issue #21226: fix a ref leak.

parent 2e8234a5
......@@ -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;
......
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