mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix reference leak.
This commit is contained in:
parent
d1cd4d4176
commit
a291c8fed2
1 changed files with 1 additions and 0 deletions
|
@ -1258,6 +1258,7 @@ array_tofile(arrayobject *self, PyObject *f)
|
||||||
Py_DECREF(bytes);
|
Py_DECREF(bytes);
|
||||||
if (res == NULL)
|
if (res == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Py_DECREF(res); /* drop write result */
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue