summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2014-05-29 12:32:39 -0600
committerEric Snow <ericsnowcurrently@gmail.com>2014-05-29 12:32:39 -0600
commit12c5247be9f30052733d4cda26af5344292582ec (patch)
treed69729a3cfea245c7f5345195dca379dc87ab6da /Python/import.c
parent679a2feb80ad25c2ef47e1d208f3cf81452f00b7 (diff)
parent58cfdd8af80f2ffa44b207e0846ddbe7f73836cb (diff)
downloadcpython-git-12c5247be9f30052733d4cda26af5344292582ec.tar.gz
Issue #21226: Merge from 3.4.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 4c8f67f499..80e376483f 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;