Skip to content

Commit

Permalink
Revert "Don't free memory in generator"
Browse files Browse the repository at this point in the history
This reverts commit 2ae033f.
  • Loading branch information
codrutiftode committed Jun 11, 2024
1 parent 2ae033f commit 65de3b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions benchmarks/libseff/generator/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ static int64_t run(int64_t n) {
// Sum generated values
int64_t result = sum(generator);

// NOTE: if larger program, should free tree memory:
// i.e. `freeTree(tree);`
// But since the program just exits, memory will be freed anyway.
// Free memory
freeTree(tree);
return result;
}

Expand Down

0 comments on commit 65de3b4

Please sign in to comment.