From f7c53095d29ea4b30a9ec3327b0cd4e5c2106d7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Sat, 9 Nov 2024 16:55:33 +0000 Subject: [PATCH] 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. --- src/shuf.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.47.3