Skip to content

Commit

Permalink
Free runner arrays on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbosio committed Jul 28, 2023
1 parent f48ef0d commit 0b4a017
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cairo_runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ cairo_runner runner_new(struct program program) {
void runner_free(cairo_runner *runner) {
memory_free(&runner->vm.memory);
program_free(&runner->program);
cc_array_remove_all_free(runner->relocated_memory);
cc_array_remove_all_free(runner->relocation_table);
}

// Creates program, execution and builtin segments.
Expand Down

0 comments on commit 0b4a017

Please sign in to comment.