Re: [PATCH] Fix a slp leak caused by vec.h conversion (PR middle-end/56461)

2013-02-28 Thread Diego Novillo
On Thu, Feb 28, 2013 at 3:06 PM, Jakub Jelinek wrote: > Hi! > > This is small, but quite common memory leak in slp vectorization. > vec_alloc (vec_defs, number_of_vects); > on vl_ptr-ish vec *vec_defs; first calls new on the vec > (i.e. allocates sizeof (void *) bytes), and then actually creates v

[PATCH] Fix a slp leak caused by vec.h conversion (PR middle-end/56461)

2013-02-28 Thread Jakub Jelinek
Hi! This is small, but quite common memory leak in slp vectorization. vec_alloc (vec_defs, number_of_vects); on vl_ptr-ish vec *vec_defs; first calls new on the vec (i.e. allocates sizeof (void *) bytes), and then actually creates vector pointed to by that. Later on we copy the content of what it