From: Pádraig Brady Date: Sat, 9 Nov 2024 16:55:33 +0000 (+0000) Subject: tests: avoid false failure on older valgrind X-Git-Tag: v9.6~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7c53095d29ea4b30a9ec3327b0cd4e5c2106d7e;p=thirdparty%2Fcoreutils.git tests: avoid false failure on older valgrind * src/shuf.c (main): In dev mode call randint_all_free() to avoid false failure with valgrind 3.16.1 at least. Note this partially reinstates commit v9.0-109-g0106b5a4b. This was noticed on a debian 11 system running CI tests. --- diff --git a/src/shuf.c b/src/shuf.c index 0956abf536..e32394e58b 100644 --- a/src/shuf.c +++ b/src/shuf.c @@ -593,5 +593,7 @@ main (int argc, char **argv) if (i != 0) write_error (); + IF_LINT (randint_all_free (randint_source)); /* For older valgrind. */ + main_exit (EXIT_SUCCESS); }