summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/memoryobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index 8ffdd41..67f7e01 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -86,7 +86,7 @@ _PyManagedBuffer_FromObject(PyObject *base)
return NULL;
if (PyObject_GetBuffer(base, &mbuf->master, PyBUF_FULL_RO) < 0) {
- /* mbuf->master.obj must be NULL. */
+ mbuf->master.obj = NULL;
Py_DECREF(mbuf);
return NULL;
}