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?