[Mesa-dev] [PATCH 2/6] nvc0: Fix memory leak.

Brian Paul brian.e.paul at gmail.com
Fri Feb 1 06:45:24 PST 2013


On Fri, Feb 1, 2013 at 12:50 AM, Vinson Lee <vlee at freedesktop.org> wrote:
> Fixes resource leak defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/gallium/drivers/nvc0/nvc0_vbo.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/nvc0/nvc0_vbo.c b/src/gallium/drivers/nvc0/nvc0_vbo.c
> index 61a6341..3ae437a 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;

For the series:
Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list