summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
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);
}