Commit be11e258 authored by lvs's avatar lvs
Browse files

removed codexl warning: memory leak by clCreateKernel (better comments)

parent efbb1d8b
...@@ -1062,8 +1062,8 @@ if (strcmp(mypars->ls_method, "sw") == 0) { ...@@ -1062,8 +1062,8 @@ if (strcmp(mypars->ls_method, "sw") == 0) {
clReleaseMemObject(mem_gradpars_conformation_min_perturbation); clReleaseMemObject(mem_gradpars_conformation_min_perturbation);
*/ */
// Release all local-search kernels, // Release all kernels,
// regarless of the chosen method for execution. // regardless of the chosen local-search method for execution.
// Otherwise, memory leak in clCreateKernel() // Otherwise, memory leak in clCreateKernel()
clReleaseKernel(kernel1); clReleaseKernel(kernel1);
clReleaseKernel(kernel2); clReleaseKernel(kernel2);
......
...@@ -189,7 +189,7 @@ int ImportSource(const char* filename, ...@@ -189,7 +189,7 @@ int ImportSource(const char* filename,
} }
#endif #endif
// Release all programs. // Release all program objects.
// Otherwise, memory leak in clCreateProgramWithSource() // Otherwise, memory leak in clCreateProgramWithSource()
clReleaseProgram(local_program); clReleaseProgram(local_program);
......
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