[Piglit] [PATCH] gl-1.0-logicop: Fix memory leak.

Brian Paul brianp at vmware.com
Sun Dec 14 09:22:40 PST 2014


On 12/13/2014 09:47 PM, Vinson Lee wrote:
> Fix resource leak defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/spec/gl-1.0/logicop.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/tests/spec/gl-1.0/logicop.c b/tests/spec/gl-1.0/logicop.c
> index 6ca988d..aa484ef 100644
> --- a/tests/spec/gl-1.0/logicop.c
> +++ b/tests/spec/gl-1.0/logicop.c
> @@ -270,6 +270,8 @@ test_logicop(GLenum logicop)
>   	if (!piglit_automatic)
>   		piglit_present_results();
>
> +	free(exp_data);
> +
>   	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
>
>   } /* test_logicop */
>

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



More information about the Piglit mailing list