public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/memleak-icf)] icf: Fix memory leak of a vector.
@ 2021-06-01 13:27 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-06-01 13:27 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c641590967cb90a7cb1cd0b44937d469fe7df94f

commit c641590967cb90a7cb1cd0b44937d469fe7df94f
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-01 13:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 13:27 [gcc(refs/users/marxin/heads/memleak-icf)] 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).