summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-12-01 16:37:49 -0700
committerBrian Paul <[email protected]>2011-12-02 07:22:39 -0700
commit9ec5050898877baa6120fd9a04464651c7cb28ad (patch)
tree1a3719b70f6248d56dd0c50c68510dc44d976f14 /src/mesa
parent98ebe833fea8060ae2b0211e4fe9990f0670bb20 (diff)
mesa: fix potential mem leak in generate_mipmap_compressed()
Fixes a coverity warning. Reviewed-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/mesa')
-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 c621800c0fa..fd6e582ec92 100644
--- 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;
}