summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-05-24 03:25:22 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-05-24 03:25:22 +0000
commit5a67af97fabbc712bd8f1f944b485e86e93b3c03 (patch)
tree2d4d2ef991d0933ca7289a0ea2c78062a38709c4 /src/mesa/shader
parent1798d9a8a4a779746f5e665357b6bc10a2894d0b (diff)
fix a small memory leak in _mesa_add_state_reference()
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/program.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index d9c24c345c..7451a3ed01 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;
}