Hi, These patches fixes a memory leak in the prime paths, and some in the selftests that show up in make selftest-valgrind. After applying these patches on my x86-64-linux-gnu system and make selftest-valgrind:
-fself-test: 7665942 pass(es) in 8.943705 seconds ==802130== ==802130== HEAP SUMMARY: ==802130== in use at exit: 1,174,596 bytes in 2,428 blocks ==802130== total heap usage: 3,650,060 allocs, 3,647,632 frees, 1,776,527,949 bytes allocated ==802130== ==802130== LEAK SUMMARY: ==802130== definitely lost: 0 bytes in 0 blocks ==802130== indirectly lost: 0 bytes in 0 blocks ==802130== possibly lost: 0 bytes in 0 blocks ==802130== still reachable: 1,174,596 bytes in 2,428 blocks ==802130== suppressed: 0 bytes in 0 blocks Jørgen Kvalsvik (2): Free buffer on function exit [PR120634] Use auto_vec in prime paths selftests [PR120634] gcc/prime-paths.cc | 50 ++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 26 deletions(-) -- 2.39.5
