diff options
author | Pan Xiuli <xiuli.pan@intel.com> | 2016-05-05 14:42:17 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-05-18 15:08:23 +0800 |
commit | 39e3cda2f23cbe77216bdb5b452789cc3e00f011 (patch) | |
tree | 2e6e069b032b5491121f615716c99a5335b1732b /utests/utest_helper.cpp | |
parent | 0b296ec53faa51e384f7b5da6ddff3ed8a0729f4 (diff) | |
download | beignet-39e3cda2f23cbe77216bdb5b452789cc3e00f011.tar.gz |
Utest: Fix utest memleaks
Free all memory allocated and release all cl objects.
Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_helper.cpp')
-rw-r--r-- | utests/utest_helper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp index 9696dac7..4d2d4df6 100644 --- a/utests/utest_helper.cpp +++ b/utests/utest_helper.cpp @@ -365,6 +365,7 @@ cl_kernel_link(const char *file_name, const char *kernel_name, const char * link program = clLinkProgram(ctx, 1, &device, link_opt, 1, input_programs, NULL, NULL, &status); OCL_ASSERT(program != NULL); OCL_ASSERT(status == CL_SUCCESS); + clReleaseProgram(input_programs[0]); } /* Create a kernel from the program */ |