From 843374f270a6bd6bace2403ad388e4a39cbe3ae7 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 19 May 2016 17:04:42 +0200 Subject: [PATCH] Fix leak in tree-ssa-loop-prefetch.c * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use auto_vec instead of vec. From-SVN: r236465 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-loop-prefetch.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f2a5920ff0..569d238b96f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-19 Martin Liska + + * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use + auto_vec instead of vec. + 2016-05-19 Martin Liska * lto-section-in.c (lto_get_section_data): Call diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c index c054c60203c..49fd597a892 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 dependences = vNULL; struct mem_ref_group *gr; struct mem_ref *ref, *refb; - vec vloops = vNULL; + auto_vec vloops; unsigned *loop_data_size; unsigned i, j, n; unsigned volume, dist, adist; -- 2.30.2