Skip to content

Commit 816c013

Browse files
committed
fixup
1 parent 811b8eb commit 816c013

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/extending/newtypes_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ allocation and deallocation. At a minimum, we need a deallocation method::
255255
CustomObject *self = (CustomObject *) op;
256256
Py_XDECREF(self->first);
257257
Py_XDECREF(self->last);
258-
Py_TYPE(self)->tp_free(op);
258+
Py_TYPE(self)->tp_free(self);
259259
}
260260

261261
which is assigned to the :c:member:`~PyTypeObject.tp_dealloc` member::

0 commit comments

Comments
 (0)