From 03653a33bfdd3ba7c2c2744f9a935b80d892724e Mon Sep 17 00:00:00 2001 From: softmattertheory Date: Fri, 8 Nov 2024 09:35:54 -0500 Subject: [PATCH] Memory leak in metafunction name --- src/classes/metafunction.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classes/metafunction.c b/src/classes/metafunction.c index 5d011bcb..f74b5436 100644 --- a/src/classes/metafunction.c +++ b/src/classes/metafunction.c @@ -35,6 +35,7 @@ enum { void objectmetafunction_freefn(object *obj) { objectmetafunction *f = (objectmetafunction *) obj; + morpho_freeobject(f->name); varray_valueclear(&f->fns); metafunction_clearinstructions(f); }