From 446132d40099c16135a63f52cb228dc417d3b858 Mon Sep 17 00:00:00 2001 From: "Yang, Rong R" Date: Tue, 20 Jun 2017 19:07:46 +0800 Subject: Utest: fix a build-in program leak. Signed-off-by: Yang Rong Reviewed-by: Ruiling Song --- utests/enqueue_built_in_kernels.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/utests/enqueue_built_in_kernels.cpp b/utests/enqueue_built_in_kernels.cpp index 52b8848b..2afbabd5 100644 --- a/utests/enqueue_built_in_kernels.cpp +++ b/utests/enqueue_built_in_kernels.cpp @@ -14,6 +14,7 @@ void enqueue_built_in_kernels(void) OCL_ASSERT(ret_sz == built_in_kernels_size); cl_program built_in_prog = clCreateProgramWithBuiltInKernels(ctx, 1, &device, built_in_kernel_names, &err); OCL_ASSERT(built_in_prog != NULL); + clReleaseProgram(built_in_prog); } MAKE_UTEST_FROM_FUNCTION(enqueue_built_in_kernels); -- cgit v1.2.3