From b688700edc0ee8a4dcbac9b4cc5b0388691b7b43 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 23 Mar 2012 23:11:09 -0700 Subject: [PATCH] mesa: Fix memory leak in generate_mipmap_compressed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/mesa/main/mipmap.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2