Re: [PATCH] Fix PR19831, remove malloc/free pairs

2011-09-08 Thread Richard Guenther
On Thu, 8 Sep 2011, Richard Guenther wrote: > > This implements removal of malloc/free pairs when allowed for a > subset of all possible cases. The idea is to identify possible > candidates (we free the return value of an allocation call) and > for them do not make the allocation function necess

[PATCH] Fix PR19831, remove malloc/free pairs

2011-09-08 Thread Richard Guenther
This implements removal of malloc/free pairs when allowed for a subset of all possible cases. The idea is to identify possible candidates (we free the return value of an allocation call) and for them do not make the allocation function necessary because of the free. If nothing else made the allo