[Beignet] [PATCH 2/3] Utest: fix a build-in program leak.
Yang Rong
rong.r.yang at intel.com
Tue Jun 20 11:07:46 UTC 2017
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
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 52b8848..2afbabd 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);
--
2.1.4
More information about the Beignet
mailing list