mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 11:30:22 +01:00
nir: fix memleak in error path
Fixes:2cf59861a8("nir: Add partial redundancy elimination for compares") Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit7659c6197f)
This commit is contained in:
parent
6a5c36715a
commit
29159cbf21
1 changed files with 3 additions and 1 deletions
|
|
@ -107,8 +107,10 @@ push_block(struct block_queue *bq)
|
|||
|
||||
if (!u_vector_init(&bi->instructions,
|
||||
sizeof(nir_alu_instr *),
|
||||
8 * sizeof(nir_alu_instr *)))
|
||||
8 * sizeof(nir_alu_instr *))) {
|
||||
free(bi);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
exec_list_push_tail(&bq->blocks, &bi->node);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue