mirror of https://github.com/python/cpython
Fix reference leak.
This commit is contained in:
parent
d1cd4d4176
commit
a291c8fed2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue