]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
yes: pacify -fsanitizer=leak
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/yes.c (main): Use main_exit, not return.

src/yes.c

index dc1791b2e5cb635d2be25f9167198bb845b76f07..13b990e24af135e97c3af644c0d2a06dd1bcbf45 100644 (file)
--- a/src/yes.c
+++ b/src/yes.c
@@ -126,5 +126,5 @@ main (int argc, char **argv)
   while (full_write (STDOUT_FILENO, buf, bufused) == bufused)
     continue;
   error (0, errno, _("standard output"));
-  return EXIT_FAILURE;
+  main_exit (EXIT_FAILURE);
 }