Re: [PATCH] Free memory leaks in tree-vect-slp.c

2011-11-10 Thread Ira Rosen
On 10 November 2011 21:31, Jakub Jelinek wrote: > Hi! > > This patch fixes some compiler memory leaks in SLP. > For vect_free_oprnd_info I've removed the FREE_DEF_STMTS argument > and am freeing the defs always, but set them to NULL when moving the vectors > over elsewhere, because otherwise if ve

[PATCH] Free memory leaks in tree-vect-slp.c

2011-11-10 Thread Jakub Jelinek
Hi! This patch fixes some compiler memory leaks in SLP. For vect_free_oprnd_info I've removed the FREE_DEF_STMTS argument and am freeing the defs always, but set them to NULL when moving the vectors over elsewhere, because otherwise if vect_create_new_slp_node or vect_build_slp_tree fails after su