From 65de3b488677892ad6ad90cab75c38d92319fe00 Mon Sep 17 00:00:00 2001 From: codrutiftode Date: Tue, 11 Jun 2024 17:45:21 +0100 Subject: [PATCH] Revert "Don't free memory in generator" This reverts commit 2ae033f2f35eb2cf4f98f521db954d12e08f07fb. --- benchmarks/libseff/generator/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmarks/libseff/generator/main.c b/benchmarks/libseff/generator/main.c index c6bd808..67e0ca2 100644 --- a/benchmarks/libseff/generator/main.c +++ b/benchmarks/libseff/generator/main.c @@ -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; }