diff options
author | Vinson Lee <vlee@freedesktop.org> | 2012-03-23 23:11:09 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2012-03-26 14:08:11 -0700 |
commit | b688700edc0ee8a4dcbac9b4cc5b0388691b7b43 (patch) | |
tree | 44f3b543cdd59847f0c164ad0a9f423869fa2f99 /src/mesa/main/mipmap.c | |
parent | 7449ae45974c6cfd872c1dc2e73bbccdb11d0f70 (diff) | |
download | external_mesa3d-b688700edc0ee8a4dcbac9b4cc5b0388691b7b43.zip external_mesa3d-b688700edc0ee8a4dcbac9b4cc5b0388691b7b43.tar.gz external_mesa3d-b688700edc0ee8a4dcbac9b4cc5b0388691b7b43.tar.bz2 |
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>
Diffstat (limited to 'src/mesa/main/mipmap.c')
-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 756316a..abd26b8 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; } |