nvc0: 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
985e710c0d
commit
0580f165ed
|
@ -89,6 +89,7 @@ nvc0_vertex_state_create(struct pipe_context *pipe,
|
||||||
case 4: fmt = PIPE_FORMAT_R32G32B32A32_FLOAT; break;
|
case 4: fmt = PIPE_FORMAT_R32G32B32A32_FLOAT; break;
|
||||||
default:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
|
FREE(so);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
so->element[i].state = nvc0_format_table[fmt].vtx;
|
so->element[i].state = nvc0_format_table[fmt].vtx;
|
||||||
|
|
Loading…
Reference in New Issue