From e5cc2d518bff8bbe599c504434251f5995ed0016 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 4 Jan 2022 19:21:14 +0100 Subject: [PATCH] :bug: Fix object destructor --- src/lib/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/object.c b/src/lib/object.c index 8a9aad08..e0d75ea8 100644 --- a/src/lib/object.c +++ b/src/lib/object.c @@ -93,7 +93,7 @@ ANN void __release(const M_Object o, const VM_Shred shred) { } ANN void free_object(MemPool p, const M_Object o) { - mp_free2(p, o->type_ref->nspc->offset, o); + mp_free2(p, sizeof(struct M_Object_) + o->type_ref->nspc->offset, o); } static ID_CHECK(opck_this) { -- 2.43.0