[Piglit] [PATCH] varying-packing-simple: Fix memory leak.

Brian Paul brianp at vmware.com
Mon Dec 17 06:50:31 PST 2012


On 12/16/2012 08:39 PM, Vinson Lee wrote:
> Fixes resource leak defect reported by Coverity.
>
> Signed-off-by: Vinson Lee<vlee at freedesktop.org>
> ---
>   tests/spec/glsl-1.10/execution/varying-packing/simple.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/tests/spec/glsl-1.10/execution/varying-packing/simple.c b/tests/spec/glsl-1.10/execution/varying-packing/simple.c
> index 5d36ccb..1b6f939 100644
> --- a/tests/spec/glsl-1.10/execution/varying-packing/simple.c
> +++ b/tests/spec/glsl-1.10/execution/varying-packing/simple.c
> @@ -392,6 +392,7 @@ piglit_init(int argc, char **argv)
>   			num_varyings, varyings);
>   	prog = piglit_link_simple_program(vs, fs);
>   	i_location = glGetUniformLocation(prog, "i");
> +	free(varyings);
>   }
>
>   enum piglit_result

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


More information about the Piglit mailing list