[PATCH weston v2] screenshooter: fix various memory handling
Pekka Paalanen
ppaalanen at gmail.com
Fri Dec 12 04:53:46 PST 2014
On Wed, 10 Dec 2014 11:50:46 +0100
Marek Chalupa <mchqwerty at gmail.com> 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 <mchqwerty at gmail.com>
> ---
> src/screenshooter.c | 25 +++++++++++++++++--------
> 1 file changed, 17 insertions(+), 8 deletions(-)
Pushed, thanks,
pq
More information about the wayland-devel
mailing list