summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2014-05-29 18:31:39 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2014-05-29 18:31:39 (GMT)
commit58cfdd8af80f2ffa44b207e0846ddbe7f73836cb (patch)
treec3125525176b5158bc623d89eb25417c6afe69cc /Python
parent2e8234a5975a79773584220a8f4d61f5fc5cf8e9 (diff)
downloadcpython-58cfdd8af80f2ffa44b207e0846ddbe7f73836cb.zip
cpython-58cfdd8af80f2ffa44b207e0846ddbe7f73836cb.tar.gz
cpython-58cfdd8af80f2ffa44b207e0846ddbe7f73836cb.tar.bz2
Issue #21226: fix a ref leak.
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 4c8f67f..80e3764 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -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;