Commit 75596c7d authored by Antoine Pitrou's avatar Antoine Pitrou

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

Schemenauer.
parent 070c4f4b
......@@ -10,6 +10,9 @@ What's New in Python 3.2 Beta 1?
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.
......
......@@ -893,8 +893,10 @@ initstdio(void)
/* Set builtins.open */
if (PyObject_SetAttrString(bimod, "open", wrapper) == -1) {
Py_DECREF(wrapper);
goto error;
}
Py_DECREF(wrapper);
encoding = Py_GETENV("PYTHONIOENCODING");
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