Re: [PATCH] Fix memory leak in the vectorizer (PR tree-optimization/79340)

2017-02-03 Thread Jeff Law
On 02/03/2017 03:24 PM, Jakub Jelinek wrote: Hi! As mentioned in the PR, on the gfortran.dg/forall_7.f90 testcase we leak memory starting with r239542. vect_get_slp_defs allocates a vector of vectors, elements corresponding to NULL in slp_ops are .create (0) vectors that don't need freeing, but

[PATCH] Fix memory leak in the vectorizer (PR tree-optimization/79340)

2017-02-03 Thread Jakub Jelinek
Hi! As mentioned in the PR, on the gfortran.dg/forall_7.f90 testcase we leak memory starting with r239542. vect_get_slp_defs allocates a vector of vectors, elements corresponding to NULL in slp_ops are .create (0) vectors that don't need freeing, but the rest is safe_spliced into other vectors.