From: Vinson Lee Date: Sat, 24 Mar 2012 06:11:09 +0000 (-0700) Subject: mesa: Fix memory leak in generate_mipmap_compressed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b688700edc0ee8a4dcbac9b4cc5b0388691b7b43;p=mesa.git mesa: Fix memory leak in generate_mipmap_compressed. Fixes Coverity resource leak defect. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index 756316a820f..abd26b8d3c8 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -2128,6 +2128,7 @@ generate_mipmap_compressed(struct gl_context *ctx, GLenum target, dstWidth, dstHeight, dstDepth, border, srcImage->InternalFormat, srcImage->TexFormat)) { + free(temp_dst); return; }