public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1156] icf: Fix memory leak of a vector.
@ 2021-06-02 6:46 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-06-02 6:46 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:088264ea445efcee5f8f06150b5f9f508f21960b
commit r12-1156-g088264ea445efcee5f8f06150b5f9f508f21960b
Author: Martin Liska <mliska@suse.cz>
Date: Tue Jun 1 15:26:47 2021 +0200
icf: Fix memory leak of a vector.
gcc/ChangeLog:
* ipa-icf.h: Use auto_vec for memory_access_types.
Diff:
---
gcc/ipa-icf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h
index 9f21a2018fc..4b4d4924512 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<tree> memory_access_types;
+ auto_vec<tree> memory_access_types;
/* Total number of SSA names used in the function. */
unsigned ssa_names_size;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-02 6:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 6:46 [gcc r12-1156] icf: Fix memory leak of a vector Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).