summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-10-25 10:08:59 -0700
committerVinson Lee <[email protected]>2011-10-25 11:09:45 -0700
commitc81b441ba2b8ab61d5e1f24ec7a34914c8a3b215 (patch)
treeb1e7b2599bec2a21f514f5a414287fd643aea4bb /src
parente8d0d7893a6e33eb76441fed146deadb39e91ab3 (diff)
swrast: Fix memory leak in out-of-memory path.
Fixes Coverity resource leak defect. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_texcombine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_texcombine.c b/src/mesa/swrast/s_texcombine.c
index c67c356c1e0..a7cbb4424be 100644
--- a/src/mesa/swrast/s_texcombine.c
+++ b/src/mesa/swrast/s_texcombine.c
@@ -108,6 +108,7 @@ texture_combine( struct gl_context *ctx, GLuint unit, GLuint n,
i--;
}
_mesa_error(ctx, GL_OUT_OF_MEMORY, "texture_combine");
+ free(rgba);
return;
}
}