Commit 11448670 authored by Tim Peters's avatar Tim Peters

open_the_file(): this routine has a borrowed reference to the file

object, so the "Metroworks only" section should not decref it in case
of error (the caller is responsible for decref'ing in case of error --
and does).
parent c010b6d9
......@@ -123,7 +123,6 @@ open_the_file(PyFileObject *f, char *name, char *mode)
/* Metroworks only, not testable, so unchanged */
if (errno == 0) {
PyErr_SetString(PyExc_IOError, "Cannot open file");
Py_DECREF(f);
return NULL;
}
#endif
......
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