From 99dcb4ea031c0cad1b6cf23406ab5d2bcd148cda Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 10 Dec 2015 09:40:35 +0100 Subject: [PATCH] Fix memory leaks in tree-vect-data-refs.c * tree-vect-data-refs.c: Free an overwritten dataref. From-SVN: r231490 --- gcc/ChangeLog | 4 ++++ gcc/tree-vect-data-refs.c | 1 + 2 files changed, 5 insertions(+) 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; } -- 2.30.2