From: Martin Liska Date: Tue, 1 Jun 2021 13:26:47 +0000 (+0200) Subject: icf: Fix memory leak of a vector. X-Git-Tag: basepoints/gcc-13~7157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=088264ea445efcee5f8f06150b5f9f508f21960b;p=thirdparty%2Fgcc.git icf: Fix memory leak of a vector. gcc/ChangeLog: * ipa-icf.h: Use auto_vec for memory_access_types. --- diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h index 9f21a2018fcc..4b4d49245125 100644 --- a/gcc/ipa-icf.h +++ b/gcc/ipa-icf.h @@ -372,7 +372,7 @@ public: hashval_t gcode_hash; /* Vector of subpart of memory access types. */ - vec memory_access_types; + auto_vec memory_access_types; /* Total number of SSA names used in the function. */ unsigned ssa_names_size;