summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-01-31 23:35:26 -0800
committerVinson Lee <vlee@freedesktop.org>2013-02-01 22:50:16 -0800
commit4cd4deab483f3ac18b43dfda626ec6115d35ee26 (patch)
treed4eb5a62fe263ee61cf84f2cf2be860ed9977f7a
parent0580f165edee989492e6c6df5f66bffb3233729f (diff)
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>
-rw-r--r--src/gallium/drivers/nv50/nv50_vbo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index 6e81b7b2d34..d050062b63a 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -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;