projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0580f16
)
nv50: Fix memory leak.
author
Vinson Lee
<vlee@freedesktop.org>
Fri, 1 Feb 2013 07:35:26 +0000
(23:35 -0800)
committer
Vinson Lee
<vlee@freedesktop.org>
Sat, 2 Feb 2013 06:50:16 +0000
(22:50 -0800)
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/nv50/nv50_vbo.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv50/nv50_vbo.c
b/src/gallium/drivers/nv50/nv50_vbo.c
index 6e81b7b2d34245121acf198473b0b6729f7f1448..d050062b63adf75147f5607fd594dbe2cf2530c4 100644
(file)
--- 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;