From: Vinson Lee Date: Tue, 25 Oct 2011 17:08:59 +0000 (-0700) Subject: swrast: Fix memory leak in out-of-memory path. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c81b441ba2b8ab61d5e1f24ec7a34914c8a3b215;p=mesa.git swrast: Fix memory leak in out-of-memory path. Fixes Coverity resource leak defect. Reviewed-by: Brian Paul --- 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; } }