[Piglit] [PATCH] arb_internalformat_query2: Fix memory leak in test_data_clear.

Alejandro Piñeiro apinheiro at igalia.com
Wed Mar 9 06:55:09 UTC 2016



On 09/03/16 04:43, Vinson Lee wrote:
> Fixes resource leak defects reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/spec/arb_internalformat_query2/common.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/spec/arb_internalformat_query2/common.c b/tests/spec/arb_internalformat_query2/common.c
> index 1748d2f093e5..a50a7b7336a0 100644
> --- a/tests/spec/arb_internalformat_query2/common.c
> +++ b/tests/spec/arb_internalformat_query2/common.c
> @@ -92,6 +92,7 @@ test_data_clear(test_data **data)
>          free(_data->params);
>          _data->params = NULL;
>  
> +        free(_data);
>          *data = NULL;
>  }
>  

Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>



More information about the Piglit mailing list