lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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/)