From: Vinson Lee Date: Fri, 1 Feb 2013 07:35:26 +0000 (-0800) Subject: nv50: Fix memory leak. X-Git-Tag: mesa-9.2.1~2856 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cd4deab483f3ac18b43dfda626ec6115d35ee26;p=platform%2Fupstream%2Fmesa.git nv50: Fix memory leak. Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c index 6e81b7b..d050062 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;