]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tac: simplify -fsanitize=leak pacification
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
* src/tac.c (main) [lint]: Omit unnecessary cleanup.
Use main_exit, not return.

src/tac.c

index f1614f2cf9c0e21315f5372741c9a9dcae5740b9..fd3778250cb067bcf9738376d274b32e68977c4e 100644 (file)
--- 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);
 }