http://cgit.freedesktop.org/cairo/tree/src/cairo-gl-operand.c , At line 303 and 312
At _cairo_gl_pattern_texture_setup() API
If _cairo_gl_context_release (ctx, status) (line 303) and
_cairo_gl_context_acquire (dst->base.device, &ctx) (line 312)
do not return non-zero status,
Then jump is made to "goto fail" (line 305 and 314 respectively) and the memory allocated to "image" is not freed which is a memory leak.
The patch for this Bug is submitted.
and the link for the patch is as follows:
Author: Sahil Vij <firstname.lastname@example.org>
AuthorDate: Fri Aug 7 18:01:18 2015 -0700
Commit: Bryce Harrington <email@example.com>
CommitDate: Fri Aug 7 18:02:07 2015 -0700
gl: Fix bug in _cairo_gl_pattern_texture_setup()
The memory allocated to "image" at line 298 is not freed before moving to label fail at line 305 and 314.
This patch takes care of this memory leak in above mentioned cases.
Signed-off-by: Sahil Vij <firstname.lastname@example.org>
Reviewed-by: Bryce Harrington <email@example.com>