public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-1156] icf: Fix memory leak of a vector.
Date: Wed,  2 Jun 2021 06:46:32 +0000 (GMT)	[thread overview]
Message-ID: <20210602064632.1F08C383540D@sourceware.org> (raw)

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;


                 reply	other threads:[~2021-06-02  6:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210602064632.1F08C383540D@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).