diff options
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r-- | Modules/_fileio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c index c3124db..c0f5c90 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c @@ -543,6 +543,7 @@ fileio_readall(PyFileIOObject *self) PyErr_SetString(PyExc_OverflowError, "unbounded read returned more bytes " "than a Python string can hold "); + Py_DECREF(result); return NULL; } |