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/compare_image_2d_and_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/compare_image_2d_and_1d_array.cpp')
-rw-r--r-- | utests/compare_image_2d_and_1d_array.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/compare_image_2d_and_1d_array.cpp b/utests/compare_image_2d_and_1d_array.cpp index dfa42739..f2db6800 100644 --- a/utests/compare_image_2d_and_1d_array.cpp +++ b/utests/compare_image_2d_and_1d_array.cpp @@ -84,6 +84,8 @@ static void compare_image_2d_and_1d_array(void) free(dst0); free(dst1); + free(image_data1); + free(image_data2); OCL_CALL(clReleaseSampler, sampler); } |