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

Marek Olšák mareko at kemper.freedesktop.org
Fri Jun 24 21:14:54 UTC 2011


Module: Mesa
Branch: master
Commit: 12c105b5de7dfb0e1c1f1fbe4ee71ddd54b020a7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=12c105b5de7dfb0e1c1f1fbe4ee71ddd54b020a7

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>

---

 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 d6470e3..7d541dc 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 {




More information about the mesa-commit mailing list