From: Martin Liska Date: Thu, 19 May 2016 15:04:42 +0000 (+0200) Subject: Fix leak in tree-ssa-loop-prefetch.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=843374f270a6bd6bace2403ad388e4a39cbe3ae7;p=gcc.git 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 --- 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;