mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nvfx: Set pointer to NULL after free.
Guard against potential use after free.
This commit is contained in:
parent
dc27515780
commit
721954c334
1 changed files with 3 additions and 1 deletions
|
|
@ -996,8 +996,10 @@ nvfx_fragprog_prepare(struct nvfx_context* nvfx, struct nvfx_fpc *fpc)
|
|||
return TRUE;
|
||||
|
||||
out_err:
|
||||
if (fpc->r_temp)
|
||||
if (fpc->r_temp) {
|
||||
FREE(fpc->r_temp);
|
||||
fpc->r_temp = NULL;
|
||||
}
|
||||
tgsi_parse_free(&p);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue