fix a small memory leak in _mesa_add_state_reference()
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index d9c24c3..7451a3e 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -467,6 +467,9 @@
 	    make_state_flags(stateTokens);
    }
 
+   /* free name string here since we duplicated it in add_parameter() */
+   _mesa_free((void *) name);
+
    return index;
 }