aboutsummaryrefslogtreecommitdiff
path: root/libcpp/ChangeLog
diff options
context:
space:
mode:
authorJørgen Kvalsvik <j@lambda.is>2025-06-19 21:00:07 +0200
committerJørgen Kvalsvik <j@lambda.is>2025-06-20 13:21:39 +0200
commit69725b13e9dc8bdb17ec8a7d554071b6b517ad47 (patch)
tree270dcb2e5c13038280e552df848be5d3b03af356 /libcpp/ChangeLog
parent246c33ac8e8e1967c74ae20c07454a24ef02822a (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
Use auto_vec in prime paths selftests [PR120634]HEADtrunkmaster
The selftests had a bunch of memory leaks that showed up in make selftest-valgrind as a result of not using auto_vec or other explicitly calling release. Replacing vec with auto_vec makes the problem go away. The auto_vec_vec helper is made constructable from a vec so that objects returned from functions can be automatically managed too. PR gcov-profile/120634 gcc/ChangeLog: * prime-paths.cc (struct auto_vec_vec): Add constructor from vec. (test_split_components): Use auto_vec_vec. (test_scc_internal_prime_paths): Ditto. (test_scc_entry_exit_paths): Ditto. (test_complete_prime_paths): Ditto. (test_entry_prime_paths): Ditto. (test_singleton_path): Ditto.
Diffstat (limited to 'libcpp/ChangeLog')
0 files changed, 0 insertions, 0 deletions