public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: marxin <mliska@suse.cz>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH 2/9] Fix leak in tree-ssa-loop-prefetch.c
Date: Thu, 19 May 2016 10:47:00 -0000	[thread overview]
Message-ID: <98d51ac7b0fc33a8fc5ed4a6d37b8c496cd75676.1463654693.git.mliska@suse.cz> (raw)
In-Reply-To: <cover.1463654693.git.mliska@suse.cz>

This fixes memory leak which can be e.g. for
20020122-2.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -fprefetch-loop-arrays.

gcc/ChangeLog:

2016-05-18  Martin Liska  <mliska@suse.cz>

	* tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
	auto_vec instead of vec.
---
 gcc/tree-ssa-loop-prefetch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c
index c054c60..49fd597 100644
--- a/gcc/tree-ssa-loop-prefetch.c
+++ b/gcc/tree-ssa-loop-prefetch.c
@@ -1546,7 +1546,7 @@ determine_loop_nest_reuse (struct loop *loop, struct mem_ref_group *refs,
   vec<ddr_p> dependences = vNULL;
   struct mem_ref_group *gr;
   struct mem_ref *ref, *refb;
-  vec<loop_p> vloops = vNULL;
+  auto_vec<loop_p> vloops;
   unsigned *loop_data_size;
   unsigned i, j, n;
   unsigned volume, dist, adist;
-- 
2.8.2


  parent reply	other threads:[~2016-05-19 10:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19 10:47 [PATCH 0/9] Remove various memory leaks marxin
2016-05-19 10:47 ` [PATCH 3/9] Fix leak in gcc/tree-ssa-reassoc.c marxin
2016-05-19 11:16   ` Richard Biener
2016-05-19 10:47 ` [PATCH 8/9] Fix memory leak in tree-parloops.c marxin
2016-05-19 11:17   ` Richard Biener
2016-05-19 10:47 ` [PATCH 1/9] Change ENABLE_VALGRIND_CHECKING to ENABLE_VALGRIND_ANNOTATIONS guard marxin
2016-05-19 18:41   ` Jeff Law
2016-05-19 10:47 ` [PATCH 7/9] Fix memory leak in tree-if-conv.c marxin
2016-05-19 11:16   ` Richard Biener
2016-05-19 10:47 ` [PATCH 5/9] Fix memory leak in tree-vect-slp.c marxin
2016-05-19 11:15   ` Richard Biener
2016-05-19 10:47 ` marxin [this message]
2016-05-19 11:16   ` [PATCH 2/9] Fix leak in tree-ssa-loop-prefetch.c Richard Biener
2016-05-19 10:47 ` [PATCH 4/9] Fix memory leak in omp-simd-clone.c marxin
2016-05-19 10:50   ` Jakub Jelinek
2016-05-19 11:03 ` [PATCH 9/9] Fix memory leak in tree-vect-stmts.c marxin
2016-05-19 11:17   ` Richard Biener
2016-05-19 11:05 ` [PATCH 6/9] Fix memory leak in ipa-pure-const marxin
2016-05-19 11:18   ` Richard Biener

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=98d51ac7b0fc33a8fc5ed4a6d37b8c496cd75676.1463654693.git.mliska@suse.cz \
    --to=mliska@suse.cz \
    --cc=gcc-patches@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).