Skip to content

Commit

Permalink
free self of method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jan 12, 2025
1 parent d2d3cb1 commit c2ae65c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/ast.jou
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ class AstCall:
for i = 0; i < self->nargs; i++:
self->args[i].free()
free(self->args)
if self->method_call_self != NULL:
self->method_call_self->free()
free(self->method_call_self)

# Useful for formatting error messages, but not much else.
# TODO: use this
Expand Down

0 comments on commit c2ae65c

Please sign in to comment.