This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with _tmpnam_r


Stuart J Adams wrote:
> 
> _tmpnam_r(NULL) uses malloc instead of returning a static buf
> and as such represents a major memory leak in to most
> code wich does not expect to have to free the pointer _tmpnam_r
> returns.
> 
> -- Stuart

Stuart, 

  Thank you for pointing this out.  I will fix this in the current code base.

-- Jeff (Cygnus Solutions)