Kaydet (Commit) 5a96b524 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Issue #10255: Fix reference leak in Py_InitializeEx(). Patch by Neil

Schemenauer.
üst e7606649
...@@ -10,6 +10,9 @@ What's New in Python 3.2 Beta 1? ...@@ -10,6 +10,9 @@ What's New in Python 3.2 Beta 1?
Core and Builtins 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 - Issue #4925: Add filename to error message when executable can't be found in
subprocess. subprocess.
......
...@@ -893,8 +893,10 @@ initstdio(void) ...@@ -893,8 +893,10 @@ initstdio(void)
/* Set builtins.open */ /* Set builtins.open */
if (PyObject_SetAttrString(bimod, "open", wrapper) == -1) { if (PyObject_SetAttrString(bimod, "open", wrapper) == -1) {
Py_DECREF(wrapper);
goto error; goto error;
} }
Py_DECREF(wrapper);
encoding = Py_GETENV("PYTHONIOENCODING"); encoding = Py_GETENV("PYTHONIOENCODING");
errors = NULL; errors = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment