mesa: fix a memory leak in _mesa_unpack_depth_span
authorMarek Olšák <maraeo@gmail.com>
Tue, 21 Jun 2011 03:07:53 +0000 (05:07 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 24 Jun 2011 20:09:27 +0000 (22:09 +0200)
NOTE: This is a candidate for the 7.10 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/pack.c

index d6470e351b8320bef0fb59b975dc437b2e52d093..7d541dcd4d2e111677a48924d403975122e7cfc9 100644 (file)
@@ -4782,6 +4782,7 @@ _mesa_unpack_depth_span( struct gl_context *ctx, GLuint n,
                 }
                 zValues[i] = value & 0xffffff00;
             }
+            free(depthTemp);
             return;
          }
          else {