diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-08-11 14:25:27 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-08-11 14:25:27 (GMT) |
commit | a291c8fed28951e5a1956d0952a205885dbfa870 (patch) | |
tree | e157e96ff9b91b1ceffab9c186f9b952b7b5bf25 /Modules/arraymodule.c | |
parent | d1cd4d41762ba55bfa121875fbcbde19fb6a35f1 (diff) | |
download | cpython-a291c8fed28951e5a1956d0952a205885dbfa870.zip cpython-a291c8fed28951e5a1956d0952a205885dbfa870.tar.gz cpython-a291c8fed28951e5a1956d0952a205885dbfa870.tar.bz2 |
Fix reference leak.
Diffstat (limited to 'Modules/arraymodule.c')
-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: |