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-06-02 08:47:26 +00:00
2012-06-02 08:47:26 +00:00
2012-06-02 08:47:26 +00:00
2012-02-11 20:43:01 +00:00
2012-04-18 07:02:53 +00:00
2012-05-11 20:06:46 +00:00
2012-05-26 17:10:16 +00:00
2012-06-02 08:47:26 +00:00
2012-03-23 23:07:02 +00:00
2012-05-11 20:06:46 +00:00
2012-05-24 21:44:46 +00:00
2012-06-02 08:47:26 +00:00
2012-05-12 15:08:22 +00:00
2012-02-25 14:31:25 +00:00