From 8fe6dd3b7732367e99f4dcdbde3badb4eed76fac Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 31 Jan 2022 08:42:07 -0800 Subject: [PATCH] yes: pacify -fsanitizer=leak * src/yes.c (main): Use main_exit, not return. --- src/yes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yes.c b/src/yes.c index dc1791b2e5..13b990e24a 100644 --- 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); } -- 2.47.2