From: Jérémie Astor Date: Tue, 4 Jan 2022 18:21:14 +0000 (+0100) Subject: :bug: Fix object destructor X-Git-Tag: nightly~389^2~13 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e5cc2d518bff8bbe599c504434251f5995ed0016;p=gwion.git :bug: Fix object destructor --- 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) {