Fix various memory leaks
authorMartin Liska <mliska@suse.cz>
Wed, 11 Nov 2015 11:21:44 +0000 (12:21 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 11 Nov 2015 11:21:44 +0000 (11:21 +0000)
commitc81897872d9e448830b0e2cc520fef538eeb347c
tree276c81537cf38e77f5739edf73cfe3a5bcddd2d0
parentc0ab1970b9dd6e652eda830294f18d6456a3117e
Fix various memory leaks

* gimple-ssa-strength-reduction.c (create_phi_basis):
Use auto_vec.
* passes.c (release_dump_file_name): New function.
(pass_init_dump_file): Used from this function.
(pass_fini_dump_file): Likewise.
* tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
* var-tracking.c (vt_initialize): Use pool_allocator.

From-SVN: r230152
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/passes.c
gcc/tree-sra.c
gcc/var-tracking.c