notyou

Memory Leak in clCreateKernelsInProgram

Discussion created by notyou on Sep 9, 2011
Latest reply on Sep 15, 2011 by lbin

I can't figure out what's causing the memory leak in this case.

The profiler comes back with the message: Memory leak detected [Ref = 1, Handle = CL_SUCCESS]: Object created by clCreateKernelsInProgram.

Then the actual line is errorCheck(clCreateKernelsInProgram(program, 1, &kernel, &numKernels), "9 - creating kernel");

What does it want me to free?

Outcomes