On Tue Feb 19 16:19:14 2008, Whiteknight wrote:
> On Mon Oct 22 09:49:02 2007, ptc wrote:
> > In src/pmc/file.pmc there is the todo item:
> > 
> > /* XXX Check if we need to deallocate strerror strings */
> > 
> > Do this.
> 
> According to:
> 
> http://www.cplusplus.com/reference/clibrary/cstring/strerror.html
> 
> The strings returned by strerror() are statically allocated, and should
> not be modified or freed. I have not been able to find explicit
> confirmation of this fact anywhere else, however. I'll keep looking, but
> I  think that we do not need to free them. 
> 
> --Andrew whitworth

All the documentation and examples I've found agree that strerr returns
a pointer to a static buffer that shouldn't be free'd.  I'm calling this
resolved.

Reply via email to