summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2014-07-24 07:51:18 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-07-25 15:07:19 +0800
commitd444555083cc98f7fd558a046b747b0415a36462 (patch)
treeb153b70fbbeaa56686bc8fee79c6498024226211 /src
parent81f45fef43f64aa4b90d14e58c468eaca3fd27f4 (diff)
fix three memory leaks
Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_command_queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cl_command_queue.c b/src/cl_command_queue.c
index d45e92f1..842c8649 100644
--- a/src/cl_command_queue.c
+++ b/src/cl_command_queue.c
@@ -446,7 +446,9 @@ cl_command_queue_flush_gpgpu(cl_command_queue queue, cl_gpgpu gpgpu)
cl_gpgpu_unmap_printf_buffer(gpgpu, 0);
if (interp_get_printf_sizeof_size(printf_info))
cl_gpgpu_unmap_printf_buffer(gpgpu, 1);
+ }
+ if (printf_info) {
interp_release_printf_info(printf_info);
global_wk_sz[0] = global_wk_sz[1] = global_wk_sz[2] = 0;
cl_gpgpu_set_printf_info(gpgpu, NULL, global_wk_sz);