OCCA2 icon indicating copy to clipboard operation
OCCA2 copied to clipboard

Memory leak in occaOpenCL.cpp

Open jkozdon opened this issue 9 years ago • 3 comments

I think that free template should have a delete command for the data delete (OpenCLKernelData_t*) this->data;

I am also getting some memory leaks in occaParser.cpp (from the new on line 3522) and occaParserNodes.cpp (from the new on line 216), but I am not sure where in my code these functions are getting called so I haven't been able to track down the leak fully.

jkozdon avatar Apr 22 '15 23:04 jkozdon

Oops, seems like I didn't implement the free() in OpenCL or CUDA

I'll add that tonight

As for the parser, I'm fixing that in the [restructure] branch, but it might take a bit of time until it's memory-leak free (will have to work on it after graduation, so about 5 weeks). Sorry about that =/

dmed256 avatar Apr 23 '15 00:04 dmed256

No problem. Just starting to develop with Lucas and figure I should let you know about things as I find them.

On Apr 22, 2015 5:07 PM, David Medina [email protected] wrote:

Oops, seems like I didn't implement the free() in OpenCL or CUDA

I'll add that tonight

As for the parser, I'm fixing that in the [restructure] branch, but it might take a bit of time until it's memory-leak free (will have to work on it after graduation, so about 5 weeks). Sorry about that =/

— Reply to this email directly or view it on GitHubhttps://github.com/tcew/OCCA2/issues/40#issuecomment-95371933.

jkozdon avatar Apr 23 '15 01:04 jkozdon

Sounds great, thanks for the help!

dmed256 avatar Apr 23 '15 01:04 dmed256