From: Marek Olšák Date: Tue, 21 Jun 2011 03:07:53 +0000 (+0200) Subject: mesa: fix a memory leak in _mesa_unpack_depth_span X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12c105b5de7dfb0e1c1f1fbe4ee71ddd54b020a7;p=mesa.git mesa: fix a memory leak in _mesa_unpack_depth_span NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index d6470e351b8..7d541dcd4d2 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -4782,6 +4782,7 @@ _mesa_unpack_depth_span( struct gl_context *ctx, GLuint n, } zValues[i] = value & 0xffffff00; } + free(depthTemp); return; } else {