summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-15 05:35:05 (GMT)
committerBrett Cannon <brett@python.org>2012-04-15 05:35:05 (GMT)
commitfc9ca274b8d814e1fdfce72828414ae628fdba88 (patch)
treeb8a1460361a8afdec37f3b62fccb0af184cd1f06 /Python/pythonrun.c
parent2a082add9d26f280a889fb5043910bf56df84a6a (diff)
downloadcpython-fc9ca274b8d814e1fdfce72828414ae628fdba88.zip
cpython-fc9ca274b8d814e1fdfce72828414ae628fdba88.tar.gz
cpython-fc9ca274b8d814e1fdfce72828414ae628fdba88.tar.bz2
Plug a refleak.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 2757eba..b64a9bf 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -199,8 +199,6 @@ import_init(PyInterpreterState *interp, PyObject *sysmod)
PyObject *value;
/* Import _importlib through its frozen version, _frozen_importlib. */
- /* XXX(bcannon): The file path for _frozen_importlib is completely off
- */
if (PyImport_ImportFrozenModule("_frozen_importlib") <= 0) {
Py_FatalError("Py_Initialize: can't import _frozen_importlib");
}
@@ -237,6 +235,7 @@ import_init(PyInterpreterState *interp, PyObject *sysmod)
Py_FatalError("Py_Initialize: importlib install failed");
}
Py_DECREF(value);
+ Py_DECREF(impmod);
_PyImportZip_Init();
}