diff --git a/msgspec/_core.c b/msgspec/_core.c index 1bf21643..0f287814 100644 --- a/msgspec/_core.c +++ b/msgspec/_core.c @@ -6810,6 +6810,7 @@ StructMeta_clear(StructMetaObject *self) Py_CLEAR(self->rename); Py_CLEAR(self->post_init); Py_CLEAR(self->struct_info); + Py_CLEAR(self->match_args); if (self->struct_offsets != NULL) { PyMem_Free(self->struct_offsets); self->struct_offsets = NULL;