panphone

There are memory leak in OpenCLSample

Discussion created by panphone on Dec 6, 2010
Latest reply on Dec 8, 2010 by himanshu.gautam

 

In "std::string convertToString(const char *filename)" :

str = new char[size+1];

s = str;

s have a new copy of str not a pointer to str,so it's destructor can not delete str.

the same problem is also in" bool SDKFile:pen(const char* fileName) "



Outcomes