mesa: Fix memory leak on error path.
Fixes Coverity resource leak defect. Signed-off-by: Vinson Lee <vlee@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user