Problem with _tmpnam_r

Jeff Johnston jjohnstn@cygnus.com
Wed Jun 24 10:54:00 GMT 1998


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)



More information about the Newlib mailing list