free(key) in _tnl_UpdateFixedFunctionProgram()
authorShunichi Fuji <palglowr@gmail.com>
Fri, 16 May 2008 16:11:25 +0000 (10:11 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 16 May 2008 21:16:06 +0000 (15:16 -0600)
src/mesa/tnl/t_vp_build.c

index 4a0ce447c6b6a7d653f077648aa3ac3612a5b30c..4432893f175ce527a2aa68b1708c8627ce9f1f52 100644 (file)
@@ -1575,6 +1575,9 @@ void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx )
       } else {
         FREE(key);
       }
+      else {
+         FREE(key);
+      }
 
       _mesa_reference_vertprog(ctx, &ctx->VertexProgram._TnlProgram, newProg);
       _mesa_reference_vertprog(ctx, &ctx->VertexProgram._Current, newProg);