projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ebe83
)
mesa: fix potential mem leak in generate_mipmap_compressed()
author
Brian Paul
<brianp@vmware.com>
Thu, 1 Dec 2011 23:37:49 +0000
(16:37 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 2 Dec 2011 14:22:39 +0000
(07:22 -0700)
Fixes a coverity warning.
Reviewed-by: Vinson Lee <vlee@vmware.com>
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index c621800c0fa939bd9220601a01488ffaf91ea7bf..fd6e582ec92a2d2ba850b3712b54c753621595cb 100644
(file)
--- a/
src/mesa/main/mipmap.c
+++ b/
src/mesa/main/mipmap.c
@@
-2048,6
+2048,7
@@
generate_mipmap_compressed(struct gl_context *ctx, GLenum target,
dstImage = _mesa_get_tex_image(ctx, texObj, target, level + 1);
if (!dstImage) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "generating mipmaps");
+ free(temp_dst);
return;
}