Fix reference leak.

This commit is contained in:
Martin v. Löwis 2007-08-11 14:25:27 +00:00
parent d1cd4d4176
commit a291c8fed2
1 changed files with 1 additions and 0 deletions

View File

@ -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: