|
|
||
|
Hallo, Brian Weed wrote:
The following change would avoid the leak:
const char * getSome()
{
return "some string";
}
The address of the string would be meaningless after the return of this function, wouldn't it?
-alex (http://www.ventonegro.org/)