From: Matt Turner Date: Sat, 28 Feb 2015 19:08:17 +0000 (-0800) Subject: mesa: Free memory allocated for luminance in readpixels. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87109acbed9c9b52f33d58ca06d9048d0ac7a215;p=mesa.git mesa: Free memory allocated for luminance in readpixels. Cc: "10.4, 10.5" Reviewed-by: Brian Paul Reviewed-by: Iago Toral Quiroga --- diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index 2e4a460c1fa..ed0104c9e46 100644 --- a/src/mesa/main/readpix.c +++ b/src/mesa/main/readpix.c @@ -594,6 +594,7 @@ read_rgba_pixels( struct gl_context *ctx, _mesa_format_convert(dst, dst_format, dst_stride, luminance, luminance_format, luminance_stride, width, height, NULL); + free(luminance); } else { _mesa_pack_luminance_from_rgba_integer(width * height, src, !src_is_uint, dst, format, type);