![]() |
||
|
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/)