diff options
author | Vinson Lee <[email protected]> | 2011-12-10 14:46:13 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2011-12-16 21:21:01 -0800 |
commit | 5d32b00db97a140a63b62f2b4945e1a50c7e0d64 (patch) | |
tree | a77462846c5b2c1c2574e3d3655a6c2d6d842ee4 /src/mesa/program/prog_parameter_layout.c | |
parent | 7b6b5f51028c72e8a868e87cad41892977552218 (diff) |
mesa: Fix memory leak on error path.
Fixes Coverity resource leak defect.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_parameter_layout.c')
-rw-r--r-- | src/mesa/program/prog_parameter_layout.c | 1 |
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; } |