summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-03-23 23:11:09 -0700
committerVinson Lee <[email protected]>2012-03-26 14:08:11 -0700
commitb688700edc0ee8a4dcbac9b4cc5b0388691b7b43 (patch)
tree44f3b543cdd59847f0c164ad0a9f423869fa2f99 /src
parent7449ae45974c6cfd872c1dc2e73bbccdb11d0f70 (diff)
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 <[email protected]> Reviewed-by: José Fonseca <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/mipmap.c1
1 files changed, 1 insertions, 0 deletions
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;
}