commit | 8e21fb2c69687717f6980e545f54b293c3cf606d | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Mar 29 18:40:13 2009 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Mar 29 18:40:13 2009 +0000 |
tree | 0f0fbf8505113a756d80d8f423438b0409840690 | |
parent | b40b947c864e42e81718be1384110a1ac66f1a96 [diff] [blame] |
Fix leak in _fileio.c (patch by Hirokazu Yamamoto)
diff --git a/Modules/_fileio.c b/Modules/_fileio.c index c6b97fb..c3124db 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c
@@ -622,6 +622,7 @@ n = -1; if (n < 0) { + Py_DECREF(bytes); if (errno == EAGAIN) Py_RETURN_NONE; PyErr_SetFromErrno(PyExc_IOError);