Re: [PATCH weston 2/3] screenshooter: fix various memory handling

2014-12-10 Thread Marek Chalupa
On 9 December 2014 at 17:49, Derek Foreman wrote: > On 05/12/14 06:49 AM, Marek Chalupa wrote: > > There were unchecked malloc and free of conditionally allocated > > memory without checking if the memory was really allocated. > > Also simplify error handling in one function. > > > > Signed-off-b

Re: [PATCH weston 2/3] screenshooter: fix various memory handling

2014-12-09 Thread Derek Foreman
On 05/12/14 06:49 AM, Marek Chalupa wrote: > There were unchecked malloc and free of conditionally allocated > memory without checking if the memory was really allocated. > Also simplify error handling in one function. > > Signed-off-by: Marek Chalupa > --- > src/screenshooter.c | 27 +++

[PATCH weston 2/3] screenshooter: fix various memory handling

2014-12-05 Thread Marek Chalupa
There were unchecked malloc and free of conditionally allocated memory without checking if the memory was really allocated. Also simplify error handling in one function. Signed-off-by: Marek Chalupa --- src/screenshooter.c | 27 +++ 1 file changed, 19 insertions(+), 8 del