summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-17 12:16:23 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-17 12:16:23 +0000
commit1119a649167f8057f75b8fd26fa6cd2c1fc59a83 (patch)
treed3edfe03010522cb00d7103c1c8e7ed06a759283 /Modules
parent4c1718c0e34e955423db92f1b69d57fc580ea57d (diff)
downloadcpython-git-1119a649167f8057f75b8fd26fa6cd2c1fc59a83.tar.gz
Issue #7561: Fix crashes when using bytearray objects with the posix
module.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 4a63f3d31d..66ca101ad3 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);
}