diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 9284185be63..b4f9e9b5c68 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