diff options
author | Richard Biener <rguenther@suse.de> | 2021-02-02 19:21:02 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-02-02 20:07:30 +0100 |
commit | 5d5130ad5c396bd2dcde766c0c994855b815355b (patch) | |
tree | 80e81b1783760c0d87e5b57cd9b2489d99b12728 /gcc/tree-ssa-loop-im.c | |
parent | db53dd4f784d5d36c2119dd66a22ad40b5020b1c (diff) | |
download | gcc-5d5130ad5c396bd2dcde766c0c994855b815355b.zip gcc-5d5130ad5c396bd2dcde766c0c994855b815355b.tar.gz gcc-5d5130ad5c396bd2dcde766c0c994855b815355b.tar.bz2 |
fix memory leaks
This fixes various vec<> memory leaks as discovered compiling 521.wrf_r.
2021-02-02 Richard Biener <rguenther@suse.de>
* gimple-loop-interchange.cc (prepare_data_references):
Release vectors.
* gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
* tree-ssa-loop-im.c (hoist_memory_references): Likewise.
* tree-vect-stmts.c (vectorizable_condition): Do not
allocate vectors.
(vectorizable_comparison): Likewise.
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r-- | gcc/tree-ssa-loop-im.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index 445b93f..8034cf6 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -2508,6 +2508,7 @@ hoist_memory_references (class loop *loop, bitmap mem_refs, if (res != 1) { bitmap_copy (refs_not_supported, mem_refs); + seq.release (); break; } sms.safe_push (std::make_pair (e, seq)); |