[Bug middle-end/112953] [14 Regressions] -Wno-attributes* failures under valgrind
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 11 08:56:37 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112953
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
2023-12-11 Jakub Jelinek <jakub@redhat.com>
PR middle-end/112953
* attribs.cc (free_attr_data): Use delete x rather than delete[] x.
--- gcc/attribs.cc.jj 2023-12-09 10:19:57.809813529 +0100
+++ gcc/attribs.cc 2023-12-11 09:55:28.894461698 +0100
@@ -315,7 +315,7 @@ void
free_attr_data ()
{
for (auto x : ignored_attributes_table)
- delete[] x;
+ delete x;
ignored_attributes_table.release ();
}
should fix this.
More information about the Gcc-bugs
mailing list