mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
nv50: Fix memory leak.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
0580f165ed
commit
4cd4deab48
1 changed files with 1 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ nv50_vertex_state_create(struct pipe_context *pipe,
|
|||
case 4: fmt = PIPE_FORMAT_R32G32B32A32_FLOAT; break;
|
||||
default:
|
||||
assert(0);
|
||||
FREE(so);
|
||||
return NULL;
|
||||
}
|
||||
so->element[i].state = nv50_format_table[fmt].vtx;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue