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); }