Fixing a leak

Hopefully fixing a leak in OpenCL code, malloc'ed values were moved to the stack