From ec5b8ff7352984f8b63b79995df15527bd7a9e70 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 17 Feb 2023 18:11:43 +0100 Subject: Removed many memory leaks Around 30-50%. Still much work to do. --- src/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c9e7b09..9844828 100644 --- a/src/main.c +++ b/src/main.c @@ -87,8 +87,6 @@ static void callback(int i, char ch) int main(void) { - GC_INIT(); - char in_template[] = TESTDIR "x.in"; char red_template[] = TESTDIR "x.red"; char trans_template[] = TESTDIR "x.trans"; @@ -123,9 +121,9 @@ int main(void) to_bruijn(tests[i].res); tests[i].equivalency.alpha = alpha_equivalency(tests[i].res, tests[i].red); - free(tests[i].in); - free(tests[i].res); - free(tests[i].red); + /* free(tests[i].in); */ + free_term(tests[i].res); + free_term(tests[i].red); } printf("=== SUMMARY ===\n"); -- cgit v1.2.3