Re: [PATCH weston v2] screenshooter: fix various memory handling

2014-12-12 Thread Pekka Paalanen
On Wed, 10 Dec 2014 11:50:46 +0100 Marek Chalupa wrote: > There were unchecked malloc and no free for this memory. > Also simplify error handling in one function. > > v2. remove check if memory is NULL, according to man pages, > free(NULL) is a no-op > > Signed-off-by: Marek Chalupa > ---

[PATCH weston v2] screenshooter: fix various memory handling

2014-12-10 Thread Marek Chalupa
There were unchecked malloc and no free for this memory. Also simplify error handling in one function. v2. remove check if memory is NULL, according to man pages, free(NULL) is a no-op Signed-off-by: Marek Chalupa --- src/screenshooter.c | 25 + 1 file changed, 17 in