summaryrefslogtreecommitdiff
path: root/utests/compiler_function_qualifiers.cpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2016-05-05 14:42:17 +0800
committerYang Rong <rong.r.yang@intel.com>2016-05-18 15:08:23 +0800
commit39e3cda2f23cbe77216bdb5b452789cc3e00f011 (patch)
tree2e6e069b032b5491121f615716c99a5335b1732b /utests/compiler_function_qualifiers.cpp
parent0b296ec53faa51e384f7b5da6ddff3ed8a0729f4 (diff)
downloadbeignet-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/compiler_function_qualifiers.cpp')
-rw-r--r--utests/compiler_function_qualifiers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utests/compiler_function_qualifiers.cpp b/utests/compiler_function_qualifiers.cpp
index 622313c5..4599c957 100644
--- a/utests/compiler_function_qualifiers.cpp
+++ b/utests/compiler_function_qualifiers.cpp
@@ -13,6 +13,7 @@ void compiler_function_qualifiers(void)
param_value = malloc(param_value_size);
err = clGetKernelInfo(kernel, CL_KERNEL_ATTRIBUTES, param_value_size, param_value, NULL);
OCL_ASSERT(err == CL_SUCCESS);
+ free(param_value);
}
MAKE_UTEST_FROM_FUNCTION(compiler_function_qualifiers);