remove unnecessary tp_dealloc (GH-13647)
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 0a3ed86..6f34037 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -1077,14 +1077,6 @@
return NULL;
}
-/* =-= */
-
-static void
-bytes_dealloc(PyObject *op)
-{
- Py_TYPE(op)->tp_free(op);
-}
-
/* Unescape a backslash-escaped string. If unicode is non-zero,
the string is a u-literal. If recode_encoding is non-zero,
the string is UTF-8 encoded and should be re-encoded in the
@@ -2875,7 +2867,7 @@
"bytes",
PyBytesObject_SIZE,
sizeof(char),
- bytes_dealloc, /* tp_dealloc */
+ 0, /* tp_dealloc */
0, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */