Module: Mesa Branch: master Commit: cea341fce84a885643e615827a86de751849f8da URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cea341fce84a885643e615827a86de751849f8da
Author: Vinson Lee <[email protected]> Date: Thu Jan 31 23:37:41 2013 -0800 nv30: Fix memory leak. Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]> --- 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 128457f..d7a774f 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
