aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-10-09 09:47:44 +0200
committerRichard Biener <rguenther@suse.de>2020-10-09 10:40:44 +0200
commita0e6e49ddedb05e2e112e5c19a2228efd016e871 (patch)
tree433873f0738d7aea6c32fbb8b1847b35c4afdd98 /gcc/cgraphunit.c
parent781634daea8cb788efb33994f4a19df76598542e (diff)
downloadgcc-a0e6e49ddedb05e2e112e5c19a2228efd016e871.zip
gcc-a0e6e49ddedb05e2e112e5c19a2228efd016e871.tar.gz
gcc-a0e6e49ddedb05e2e112e5c19a2228efd016e871.tar.bz2
random memory leak fixes
This fixes leaks discovered checking whether I introduced new ones with the last vectorizer changes. 2020-10-09 Richard Biener <rguenther@suse.de> * cgraphunit.c (expand_all_functions): Free tp_first_run_order. * ipa-modref.c (pass_ipa_modref::execute): Free order. * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Free loop body. * tree-vect-data-refs.c (vect_find_stmt_data_reference): Free data references upon failure. * tree-vect-loop.c (update_epilogue_loop_vinfo): Free BBs array of the original loop. * tree-vect-slp.c (vect_slp_bbs): Use an auto_vec for dataref_groups to release its memory.
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index bedb6e2..19ae876 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2494,6 +2494,7 @@ expand_all_functions (void)
delete ipa_saved_clone_sources;
ipa_saved_clone_sources = NULL;
free (order);
+ free (tp_first_run_order);
}
/* This is used to sort the node types by the cgraph order number. */