]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure on older valgrind
authorPádraig Brady <P@draigBrady.com>
Sat, 9 Nov 2024 16:55:33 +0000 (16:55 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 9 Nov 2024 17:16:30 +0000 (17:16 +0000)
* 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

index 0956abf53695f938d912678e5938535cf7ff679e..e32394e58b1c80bb67ccb17813f61630bb0819e4 100644 (file)
@@ -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);
 }