Commit 208ced35 authored by lvs's avatar lvs
Browse files

removed codexl warning: memory leak by clCreateProgramWithSoirce

parent 916b8c58
......@@ -56,12 +56,12 @@ int convertToString2(const char *filename, std::string& s)
}
int ImportSource(const char* filename,
const char* kernel_name,
cl_device_id* device_id,
cl_context context,
/*cl_program* program,*/
const char* options,
cl_kernel* kernel)
const char* kernel_name,
cl_device_id* device_id,
cl_context context,
/*cl_program* program,*/
const char* options,
cl_kernel* kernel)
{
cl_int err;
......@@ -189,6 +189,7 @@ int ImportSource(const char* filename,
}
#endif
clReleaseProgram(local_program);
/* *program = local_program;*/
*kernel = local_kernel;
return CL_SUCCESS;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment