[Piglit] [PATCH] point-vertex-id: Fix memory leak.

Neil Roberts neil at linux.intel.com
Thu Aug 6 06:18:21 PDT 2015


Looks good to me.

Reviewed-by: Neil Roberts <neil at linux.intel.com>

- Neil

Vinson Lee <vlee at freedesktop.org> writes:

> Fix resource leak defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/general/point-vertex-id.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tests/general/point-vertex-id.c b/tests/general/point-vertex-id.c
> index 5823ff1..350c1b3 100644
> --- a/tests/general/point-vertex-id.c
> +++ b/tests/general/point-vertex-id.c
> @@ -245,6 +245,8 @@ piglit_display(void)
>  
>  	piglit_present_results();
>  
> +	free(ref_image);
> +
>  	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
>  }
>  
> -- 
> 2.1.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list