diff options
author | Dave Airlie <[email protected]> | 2019-06-19 07:10:13 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-06-19 08:32:19 +1000 |
commit | 93ba356544a16e1f2bb0be3550d3b24ec2e5b13a (patch) | |
tree | e3ea9e5d2e73a270764433dfc876c44a6a7bfab3 /src/gallium/drivers/nouveau/nv50 | |
parent | ad284f794cdd1de7d4546b1cb2a3772860436da4 (diff) |
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: f014ae3c7cce ("nouveau: add support for nir")
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_program.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_state.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_program.c b/src/gallium/drivers/nouveau/nv50/nv50_program.c index 940fb9ce25c..a725aedcd8e 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_program.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_program.c @@ -346,6 +346,7 @@ nv50_program_translate(struct nv50_program *prog, uint16_t chipset, break; default: assert(!"unsupported IR!"); + free(info); return false; } diff --git a/src/gallium/drivers/nouveau/nv50/nv50_state.c b/src/gallium/drivers/nouveau/nv50/nv50_state.c index 228feced5d1..89558ee442f 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_state.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_state.c @@ -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; } |