[Python-checkins] r86607 - in python/branches/py3k: Misc/NEWS Python/pythonrun.c
antoine.pitrou
python-checkins at python.org
Sat Nov 20 20:50:58 CET 2010
Author: antoine.pitrou
Date: Sat Nov 20 20:50:57 2010
New Revision: 86607
Log:
Issue #10255: Fix reference leak in Py_InitializeEx(). Patch by Neil
Schemenauer.
Modified:
python/branches/py3k/Misc/NEWS
python/branches/py3k/Python/pythonrun.c
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Nov 20 20:50:57 2010
@@ -10,6 +10,9 @@
Core and Builtins
-----------------
+- Issue #10255: Fix reference leak in Py_InitializeEx(). Patch by Neil
+ Schemenauer.
+
- Issue #4925: Add filename to error message when executable can't be found in
subprocess.
Modified: python/branches/py3k/Python/pythonrun.c
==============================================================================
--- python/branches/py3k/Python/pythonrun.c (original)
+++ python/branches/py3k/Python/pythonrun.c Sat Nov 20 20:50:57 2010
@@ -893,8 +893,10 @@
/* Set builtins.open */
if (PyObject_SetAttrString(bimod, "open", wrapper) == -1) {
+ Py_DECREF(wrapper);
goto error;
}
+ Py_DECREF(wrapper);
encoding = Py_GETENV("PYTHONIOENCODING");
errors = NULL;
More information about the Python-checkins
mailing list