svn commit: r235266 - head/lib/libc/stdlib

Konstantin Belousov kostikbel at gmail.com
Fri May 11 17:04:17 UTC 2012


On Fri, May 11, 2012 at 06:54:32PM +0400, Andrey Chernov wrote:
> Thanks, but in this two places old errno value should be saved across
> free() because free() may damage it:
I do not agree. free() cannot change errno.

> 
> On Fri, May 11, 2012 at 11:29:08AM +0000, Konstantin Belousov wrote:
> ...
> > +			if (lstat(resolved, &sb) != 0) {
> > +				if (m)
> > +					free(resolved);
> > +
> 				return (NULL);
> ...
> > +				errno = ENOTDIR;
> >  			if (m)
> >  				free(resolved);
> >  			return (NULL);
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120511/5d07bb4c/attachment.pgp


More information about the svn-src-all mailing list