Skip to content

Commit 32684d8

Browse files
author
martin.v.loewis
committed
Fix reference leak.
git-svn-id: http://svn.python.org/projects/python/branches/py3k@56924 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent b031841 commit 32684d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/arraymodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,7 @@ array_tofile(arrayobject *self, PyObject *f)
12581258
Py_DECREF(bytes);
12591259
if (res == NULL)
12601260
return NULL;
1261+
Py_DECREF(res); /* drop write result */
12611262
}
12621263

12631264
done:

0 commit comments

Comments
 (0)