[Python-checkins] cpython: Plug a refleak.
brett.cannon
python-checkins at python.org
Sun Apr 15 07:35:20 CEST 2012
http://hg.python.org/cpython/rev/c7bf93802f5d
changeset: 76314:c7bf93802f5d
user: Brett Cannon <brett at python.org>
date: Sun Apr 15 01:35:05 2012 -0400
summary:
Plug a refleak.
files:
Python/pythonrun.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -199,8 +199,6 @@
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 @@
Py_FatalError("Py_Initialize: importlib install failed");
}
Py_DECREF(value);
+ Py_DECREF(impmod);
_PyImportZip_Init();
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list