diff options
author | Vinson Lee <[email protected]> | 2013-01-31 23:37:41 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-01 22:50:26 -0800 |
commit | cea341fce84a885643e615827a86de751849f8da (patch) | |
tree | a4a6d7f296c7dc9f9218c1040c2f2b1b813f7e7f | |
parent | 4cd4deab483f3ac18b43dfda626ec6115d35ee26 (diff) |
nv30: Fix memory leak.
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/gallium/drivers/nv30/nv30_vbo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_vbo.c b/src/gallium/drivers/nv30/nv30_vbo.c index 128457f7aa9..d7a774fab27 100644 --- a/src/gallium/drivers/nv30/nv30_vbo.c +++ b/src/gallium/drivers/nv30/nv30_vbo.c @@ -278,6 +278,7 @@ nv30_vertex_state_create(struct pipe_context *pipe, unsigned num_elements, case 4: fmt = PIPE_FORMAT_R32G32B32A32_FLOAT; break; default: assert(0); + FREE(so); return NULL; } so->element[i].state = nv30_vtxfmt(pipe->screen, fmt)->hw; |