diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y index 862ca88cf72..ed552fc1827 100644 --- a/src/mesa/program/program_parse.y +++ b/src/mesa/program/program_parse.y @@ -2068,6 +2068,7 @@ ALIAS_statement: ALIAS IDENTIFIER '=' USED_IDENTIFIER YYERROR; } else { _mesa_symbol_table_add_symbol(state->st, $2, target); + free($2); } (void)yynerrs; }