[Piglit] [PATCH] arb_direct_state_access: Fix memory leaks.

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri May 19 00:34:48 UTC 2017


Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

On 05/19/2017 12:17 AM, Vinson Lee wrote:
> Fix Coverity resource leak defect.
> 
> CID: 1409706
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/spec/arb_direct_state_access/get-textures.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/tests/spec/arb_direct_state_access/get-textures.c b/tests/spec/arb_direct_state_access/get-textures.c
> index 8b3372073867..5286b4605c82 100644
> --- a/tests/spec/arb_direct_state_access/get-textures.c
> +++ b/tests/spec/arb_direct_state_access/get-textures.c
> @@ -116,6 +116,9 @@ valid_call:
>   			  50 * 50 * 6 * 4, data);
>   	pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
>   
> +	free(data);
> +	free(image);
> +
>   	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
>   }
>   
> 


More information about the Piglit mailing list