From: Martin Liska Date: Thu, 10 Dec 2015 08:40:35 +0000 (+0100) Subject: Fix memory leaks in tree-vect-data-refs.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99dcb4ea031c0cad1b6cf23406ab5d2bcd148cda;p=gcc.git Fix memory leaks in tree-vect-data-refs.c * tree-vect-data-refs.c: Free an overwritten dataref. From-SVN: r231490 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0bf6ebd74af..e0c72edb875 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-12-10 Martin Liska + + * tree-vect-data-refs.c: Free an overwritten dataref. + 2015-12-09 John David Anglin PR target/68729 diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 8810af1bfcd..4c566c84766 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -3847,6 +3847,7 @@ again: return false; } + free_data_ref (datarefs[i]); datarefs[i] = dr; STMT_VINFO_GATHER_SCATTER_P (stmt_info) = gatherscatter; }