summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang, Rong R <rong.r.yang@intel.com>2017-06-20 19:07:46 +0800
committerYang Rong <rong.r.yang@intel.com>2017-07-10 17:21:34 +0800
commit446132d40099c16135a63f52cb228dc417d3b858 (patch)
tree71b8fa8d551faace63c2646be270093f56eefd1a
parentc909b00db08ade0c3cb123e776e52dbef6332596 (diff)
Utest: fix a build-in program leak.
Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
-rw-r--r--utests/enqueue_built_in_kernels.cpp1
1 files changed, 1 insertions, 0 deletions
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);