Module: Mesa Branch: master Commit: b688700edc0ee8a4dcbac9b4cc5b0388691b7b43 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b688700edc0ee8a4dcbac9b4cc5b0388691b7b43
Author: Vinson Lee <[email protected]> Date: Fri Mar 23 23:11:09 2012 -0700 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]> --- 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; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
