Mesa (7.10): mesa: fix a memory leak in _mesa_unpack_depth_span

Marek Olšák mareko at kemper.freedesktop.org
Fri Jun 24 14:19:35 PDT 2011


Module: Mesa
Branch: 7.10
Commit: 26ab29cf792931dde48003df512757fe844f068f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=26ab29cf792931dde48003df512757fe844f068f

Author: Marek Olšák <maraeo at gmail.com>
Date:   Tue Jun 21 05:07:53 2011 +0200

mesa: fix a memory leak in _mesa_unpack_depth_span

NOTE: This is a candidate for the 7.10 branch.

Reviewed-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit 12c105b5de7dfb0e1c1f1fbe4ee71ddd54b020a7)

---

 src/mesa/main/pack.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index 6d524e6..0ab1a5e 100644
--- a/src/mesa/main/pack.c
+++ b/src/mesa/main/pack.c
@@ -4652,6 +4652,7 @@ _mesa_unpack_depth_span( struct gl_context *ctx, GLuint n,
                 }
                 zValues[i] = value & 0xffffff00;
             }
+            free(depthTemp);
             return;
          }
          else {



More information about the mesa-commit mailing list