[Piglit] [PATCH] cl-api-get-device-info: Fix memory leak.
Brian Paul
brianp at vmware.com
Sun Dec 14 09:24:35 PST 2014
On 12/13/2014 10:30 PM, Vinson Lee wrote:
> Fix resource leak defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> tests/cl/api/get-device-info.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/cl/api/get-device-info.c b/tests/cl/api/get-device-info.c
> index ca13fa1..cdfbb26 100644
> --- a/tests/cl/api/get-device-info.c
> +++ b/tests/cl/api/get-device-info.c
> @@ -162,5 +162,7 @@ piglit_cl_test(const int argc,
> piglit_merge_result(&result, PIGLIT_FAIL);
> }
>
> + free(int_value);
> +
> return result;
> }
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the Piglit
mailing list