mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Merged revisions 77571 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r77571 | antoine.pitrou | 2010-01-17 13:16:23 +0100 (dim., 17 janv. 2010) | 4 lines Issue #7561: Fix crashes when using bytearray objects with the posix module. ........
This commit is contained in:
parent
f3f5a1333b
commit
1b64331f49
3 changed files with 13 additions and 1 deletions
|
|
@ -580,7 +580,7 @@ static void
|
|||
release_bytes(PyObject* o)
|
||||
{
|
||||
if (PyByteArray_Check(o))
|
||||
o->ob_type->tp_as_buffer->bf_releasebuffer(NULL, 0);
|
||||
o->ob_type->tp_as_buffer->bf_releasebuffer(o, 0);
|
||||
Py_DECREF(o);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue