Fix memory leaks in tree-vect-data-refs.c

* tree-vect-data-refs.c: Free an overwritten dataref.

From-SVN: r231490
This commit is contained in:
Martin Liska 2015-12-10 09:40:35 +01:00 committed by Martin Liska
parent 787c102712
commit 99dcb4ea03
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-12-10 Martin Liska <mliska@suse.cz>
* tree-vect-data-refs.c: Free an overwritten dataref.
2015-12-09 John David Anglin <danglin@gcc.gnu.org>
PR target/68729

View File

@ -3847,6 +3847,7 @@ again:
return false;
}
free_data_ref (datarefs[i]);
datarefs[i] = dr;
STMT_VINFO_GATHER_SCATTER_P (stmt_info) = gatherscatter;
}