diff options
author | Vladimir Dergachev <[email protected]> | 2005-08-06 05:19:42 +0000 |
---|---|---|
committer | Vladimir Dergachev <[email protected]> | 2005-08-06 05:19:42 +0000 |
commit | 94a4eb1e7806bfcb52f6cd48f8071238da7e2cf8 (patch) | |
tree | ea9e5bb77bb5a3c599a5e99601f3623a88af8b7e /src/mesa/tnl/t_vp_build.c | |
parent | b8731903dff9fb2ec944a9e049cd81db2210b636 (diff) |
Follow suggestion by Aapo Tahkola to fix giant memory leak from forgetting to free the key when entry was already found (presumably a common case).
Diffstat (limited to 'src/mesa/tnl/t_vp_build.c')
-rw-r--r-- | src/mesa/tnl/t_vp_build.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index 049bd20bd9d..e62c5b374c2 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -1473,6 +1473,7 @@ void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx ) cache_item(&tnl->vp_cache, hash, key, ctx->_TnlProgram ); } else { + FREE(key); if (0) _mesa_printf("Found existing TNL program for key %x\n", hash); } |