From 09fba86d731305fc218ddff44c8ae7558b0f79b1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 31 Jan 2022 08:42:07 -0800 Subject: [PATCH 41/43] uptime: simplify -fsanitize=leak pacification * src/uptime.c (uptime): Exit here ... (main): ... instead of here. --- src/uptime.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uptime.c b/src/uptime.c index b620885f7..f1cb84a6b 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -186,7 +186,7 @@ uptime (char const *filename, int options) print_uptime (n_users, utmp_buf); - IF_LINT (free (utmp_buf)); + exit (EXIT_SUCCESS); } void @@ -252,6 +252,4 @@ main (int argc, char **argv) error (0, 0, _("extra operand %s"), quote (argv[optind + 1])); usage (EXIT_FAILURE); } - - return EXIT_SUCCESS; } -- 2.32.0