mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
d3dcompiler_43: Free assignment on error (coverity).
This commit is contained in:
parent
b302e1f2a5
commit
3abc425267
1 changed files with 2 additions and 0 deletions
|
@ -1637,6 +1637,7 @@ struct hlsl_ir_node *make_assignment(struct hlsl_ir_node *left, enum parse_assig
|
|||
debug_hlsl_type(rhs->data_type), debug_hlsl_type(type));
|
||||
free_instr(lhs);
|
||||
free_instr(rhs);
|
||||
d3dcompiler_free(assign);
|
||||
return NULL;
|
||||
}
|
||||
if (lhs->data_type->dimx * lhs->data_type->dimy < rhs->data_type->dimx * rhs->data_type->dimy)
|
||||
|
@ -1649,6 +1650,7 @@ struct hlsl_ir_node *make_assignment(struct hlsl_ir_node *left, enum parse_assig
|
|||
ERR("Couldn't implicitly convert expression to %s.\n", debug_hlsl_type(type));
|
||||
free_instr(lhs);
|
||||
free_instr(rhs);
|
||||
d3dcompiler_free(assign);
|
||||
return NULL;
|
||||
}
|
||||
rhs = converted_rhs;
|
||||
|
|
Loading…
Reference in a new issue