summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 9284185..b4f9e9b 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -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