svn commit: r235266 - head/lib/libc/stdlib
Andrey Chernov
ache at FreeBSD.ORG
Fri May 11 14:54:39 UTC 2012
Thanks, but in this two places old errno value should be saved across
free() because free() may damage it:
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);
--
http://ache.vniz.net/
More information about the svn-src-all
mailing list