On Fri, 2015-02-06 at 18:55 -0800, Vinson Lee wrote:
> Fix resource leak defect reported by Coverity.
> 
> Signed-off-by: Vinson Lee <[email protected]>
the function could be cleaned up a bit by using temp variable, but that
can be done later.

Reviewed-by: Jan Vesely <[email protected]>

> ---
>  tests/cl/api/create-sampler.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/cl/api/create-sampler.c b/tests/cl/api/create-sampler.c
> index 99423a3..dcdef05 100644
> --- a/tests/cl/api/create-sampler.c
> +++ b/tests/cl/api/create-sampler.c
> @@ -47,6 +47,7 @@ static bool context_has_image_support(const 
> piglit_cl_context ctx)
>                       free(image_support);
>                       return true;
>               }
> +             free(image_support);
>       }
>       return false;
>  }


-- 
Jan Vesely <[email protected]>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to