Skip to content

Commit

Permalink
Memory leak in metafunction name
Browse files Browse the repository at this point in the history
  • Loading branch information
softmattertheory committed Nov 8, 2024
1 parent d2c7035 commit 03653a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/metafunction.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 03653a3

Please sign in to comment.