summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-01-31 23:32:41 -0800
committerVinson Lee <[email protected]>2013-02-01 22:50:01 -0800
commit0580f165edee989492e6c6df5f66bffb3233729f (patch)
tree34b1d36006303b4036df4b1b384ba4108a1ffc83 /src/gallium/drivers
parent985e710c0d1f4f3bbd18448f04e611bd57ae9100 (diff)
nvc0: Fix memory leak.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_vbo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_vbo.c b/src/gallium/drivers/nvc0/nvc0_vbo.c
index 61a6341b852..3ae437a0778 100644
--- a/src/gallium/drivers/nvc0/nvc0_vbo.c
+++ b/src/gallium/drivers/nvc0/nvc0_vbo.c
@@ -89,6 +89,7 @@ nvc0_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 = nvc0_format_table[fmt].vtx;