From 12c105b5de7dfb0e1c1f1fbe4ee71ddd54b020a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 21 Jun 2011 05:07:53 +0200 Subject: [PATCH] mesa: fix a memory leak in _mesa_unpack_depth_span NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul --- src/mesa/main/pack.c | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.30.2