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/compiler_fill_image_1d_array.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/compiler_fill_image_1d_array.cpp')
-rw-r--r-- | utests/compiler_fill_image_1d_array.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utests/compiler_fill_image_1d_array.cpp b/utests/compiler_fill_image_1d_array.cpp index 67f96436..23a84255 100644 --- a/utests/compiler_fill_image_1d_array.cpp +++ b/utests/compiler_fill_image_1d_array.cpp @@ -69,6 +69,7 @@ static void compiler_fill_image_1d_array(void) for (uint32_t i = 0; i < w; i++) { OCL_ASSERT(dst[(array - 1)*w + i] == 0x0); } + free(src); free(dst); } |