From f9e70c6ddfe4e14459098f166620555ed686b9a4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 31 Jan 2022 08:42:07 -0800 Subject: [PATCH 18/43] tac: simplify -fsanitize=leak pacification * src/tac.c (main) [lint]: Omit unnecessary cleanup. Use main_exit, not return. --- src/tac.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/tac.c b/src/tac.c index f1614f2cf..fd3778250 100644 --- a/src/tac.c +++ b/src/tac.c @@ -704,10 +704,5 @@ main (int argc, char **argv) ok = false; } -#ifdef lint - size_t offset = sentinel_length ? sentinel_length : 1; - free (G_buffer - offset); -#endif - - return ok ? EXIT_SUCCESS : EXIT_FAILURE; + main_exit (ok ? EXIT_SUCCESS : EXIT_FAILURE); } -- 2.32.0