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

Garrett Cooper yanegomi at gmail.com
Fri May 11 17:55:41 UTC 2012


On Fri, May 11, 2012 at 10:04 AM, Konstantin Belousov
<kostikbel at gmail.com> wrote:
> 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.

    It might depending on the OS (logically it shouldn't, but I
digress), but there was some recent discussion on the POSIX list about
errno not being mangled via free:
http://austingroupbugs.net/view.php?id=385 .
Cheers,
-Garrett


More information about the svn-src-head mailing list