diff options
-rw-r--r-- | Modules/arraymodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 36fec53..8e8dce2 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1258,6 +1258,7 @@ array_tofile(arrayobject *self, PyObject *f) Py_DECREF(bytes); if (res == NULL) return NULL; + Py_DECREF(res); /* drop write result */ } done: |