Issue #21226: fix a ref leak.

This commit is contained in:
Eric Snow 2014-05-29 12:31:39 -06:00
parent 2e8234a597
commit 58cfdd8af8
1 changed files with 1 additions and 0 deletions

View File

@ -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;