summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorShunichi Fuji <[email protected]>2008-05-16 13:18:06 -0700
committerEric Anholt <[email protected]>2008-05-16 13:18:25 -0700
commite6cd9d88d345b998f8623f0f92c3c4cea8e66f54 (patch)
tree9f1d2a12574401e2ba6c2f1e00a2b2d4be6a3ef4 /src/mesa/tnl
parent0639998ee8750083b5e4ad90371c475cb2cca88f (diff)
Fix memory leak in _tnl_UpdateFixedFunctionProgram
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vp_build.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c
index 2b1eefe8098..4a0ce447c6b 100644
--- a/src/mesa/tnl/t_vp_build.c
+++ b/src/mesa/tnl/t_vp_build.c
@@ -1572,6 +1572,8 @@ void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx )
cache_item(ctx, tnl->vp_cache, hash, key, newProg);
_mesa_reference_vertprog(ctx, &ctx->VertexProgram._TnlProgram, newProg);
+ } else {
+ FREE(key);
}
_mesa_reference_vertprog(ctx, &ctx->VertexProgram._TnlProgram, newProg);