mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
nouveau: fix frees in unsupported IR error paths.
This is pointless in that we won't ever hit those paths in real life,
but coverity complains.
Fixes: f014ae3c7c ("nouveau: add support for nir")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
ad284f794c
commit
93ba356544
4 changed files with 6 additions and 0 deletions
|
|
@ -346,6 +346,7 @@ nv50_program_translate(struct nv50_program *prog, uint16_t chipset,
|
|||
break;
|
||||
default:
|
||||
assert(!"unsupported IR!");
|
||||
free(info);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -768,6 +768,7 @@ nv50_sp_state_create(struct pipe_context *pipe,
|
|||
break;
|
||||
default:
|
||||
assert(!"unsupported IR!");
|
||||
free(prog);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -864,6 +865,7 @@ nv50_cp_state_create(struct pipe_context *pipe,
|
|||
break;
|
||||
default:
|
||||
assert(!"unsupported IR!");
|
||||
free(prog);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -594,6 +594,7 @@ nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset,
|
|||
break;
|
||||
default:
|
||||
assert(!"unsupported IR!");
|
||||
free(info);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -607,6 +607,7 @@ nvc0_sp_state_create(struct pipe_context *pipe,
|
|||
break;
|
||||
default:
|
||||
assert(!"unsupported IR!");
|
||||
free(prog);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -739,6 +740,7 @@ nvc0_cp_state_create(struct pipe_context *pipe,
|
|||
break;
|
||||
default:
|
||||
assert(!"unsupported IR!");
|
||||
free(prog);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue