From 5a67af97fabbc712bd8f1f944b485e86e93b3c03 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 24 May 2006 03:25:22 +0000 Subject: fix a small memory leak in _mesa_add_state_reference() --- src/mesa/shader/program.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index d9c24c345c4..7451a3ed018 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -467,6 +467,9 @@ _mesa_add_state_reference(struct program_parameter_list *paramList, make_state_flags(stateTokens); } + /* free name string here since we duplicated it in add_parameter() */ + _mesa_free((void *) name); + return index; } -- cgit v1.2.3