diff options
author | Vinson Lee <vlee@freedesktop.org> | 2012-03-23 23:11:09 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-05-18 16:08:34 -0700 |
commit | 6e8c30304e25dc3bd5a357de34e414fe12ce5ca2 (patch) | |
tree | 802147d2747b41b0ce3416f8f9a6983b9c3943c3 | |
parent | 3e5f17b5f96b9eb3582cf9e5fb8c81e33bf49a5d (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 <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit b688700edc0ee8a4dcbac9b4cc5b0388691b7b43)
-rw-r--r-- | src/mesa/main/mipmap.c | 1 |
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; } |