diff options
author | Marvin Borner | 2023-02-17 18:11:43 +0100 |
---|---|---|
committer | Marvin Borner | 2023-02-17 18:11:43 +0100 |
commit | ec5b8ff7352984f8b63b79995df15527bd7a9e70 (patch) | |
tree | bf9cc25b83b67788fa3af8e3f15521fc6677bb7b /src/main.c | |
parent | 9b0ddd467c52c2848efa28f5faa3f2be9b6cc384 (diff) |
Removed many memory leaks
Around 30-50%. Still much work to do.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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"); |