From e291cf6f8d3423c2f1e123ec2a42f0568019da80 Mon Sep 17 00:00:00 2001 From: Shunichi Fuji Date: Fri, 16 May 2008 10:11:25 -0600 Subject: [PATCH] free(key) in _tnl_UpdateFixedFunctionProgram() --- src/mesa/tnl/t_vp_build.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index 4a0ce447c6b..4432893f175 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -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); -- 2.30.2