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

Brian Paul brianp at vmware.com
Thu Aug 6 06:51:51 PDT 2015


On 08/05/2015 09:29 PM, Vinson Lee wrote:
> 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;
>   }
>
>


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



More information about the Piglit mailing list