aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_parameter_layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/program/prog_parameter_layout.c')
-rw-r--r--src/mesa/program/prog_parameter_layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/program/prog_parameter_layout.c b/src/mesa/program/prog_parameter_layout.c
index 28fca3b92d9..e4f2db3b379 100644
--- a/src/mesa/program/prog_parameter_layout.c
+++ b/src/mesa/program/prog_parameter_layout.c
@@ -138,6 +138,7 @@ _mesa_layout_parameters(struct asm_parser_state *state)
inst->SrcReg[i].Symbol->param_binding_length);
if (new_begin < 0) {
+ _mesa_free_parameter_list(layout);
return GL_FALSE;
}