Added FREE(depth) in error clause before return
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 22 Jun 2000 21:26:51 +0000 (21:26 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 22 Jun 2000 21:26:51 +0000 (21:26 +0000)
src/mesa/main/image.c

index 627ab1510e7b35fdc53b38c840272f43d56deeed..c695bd85be56ab4bf1ea802873a1bdfbfdd40e7c 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.32 2000/05/19 22:35:44 brianp Exp $ */
+/* $Id: image.c,v 1.33 2000/06/22 21:26:51 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -2995,6 +2995,7 @@ _mesa_unpack_depth_span( const GLcontext *ctx, GLuint n, GLdepth *dest,
          break;
       default:
          gl_problem(NULL, "bad type in _mesa_unpack_depth_span()");
+         FREE(depth);
          return;
    }