Andrey A. Chernov 96700463ec 1) IEEE Std 1003.1-2008, "errno" section, is explicit that
"The setting of errno after a successful call to a function is
unspecified unless the description of that function specifies that
errno shall not be modified."

However, free() in IEEE Std 1003.1-2008 does not mention its interaction
with errno, so MAY modify it after successful call
(it depends on particular free() implementation, OS-specific, etc.).

So, save errno across free() calls to make code portable and
POSIX-conformant.

2) Remove unused serrno assignment.

MFC after:      1 week
2012-06-04 21:34:49 +00:00
..
2012-05-08 18:56:21 +00:00
2012-06-02 08:47:26 +00:00
2012-05-12 07:52:45 +00:00
2012-03-26 19:23:57 +00:00
2012-03-28 19:20:28 +00:00
2012-05-11 20:06:46 +00:00
2012-03-06 03:30:09 +00:00
2012-05-23 10:35:40 +00:00
2012-05-13 14:16:04 +00:00
2012-05-11 20:06:46 +00:00
2012-05-11 20:06:46 +00:00
2012-06-02 10:50:25 +00:00