diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-17 12:19:45 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-17 12:19:45 (GMT) |
commit | 1b64331f49881f23fbbdbab8a9e152aa2188d5b6 (patch) | |
tree | a8bc538f6d46e6b7877141e1321ecc1c614616e9 /Modules/posixmodule.c | |
parent | f3f5a1333be0623922798291286ae18c90617804 (diff) | |
download | cpython-1b64331f49881f23fbbdbab8a9e152aa2188d5b6.zip cpython-1b64331f49881f23fbbdbab8a9e152aa2188d5b6.tar.gz cpython-1b64331f49881f23fbbdbab8a9e152aa2188d5b6.tar.bz2 |
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.
........
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 688da2c..814c9ba 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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); } |