This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/17924] New: 'free' should not set errno


https://sourceware.org/bugzilla/show_bug.cgi?id=17924

            Bug ID: 17924
           Summary: 'free' should not set errno
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: eggert at gnu dot org

As mentioned in <http://austingroupbugs.net/view.php?id=385>, the next major
POSIX release will require 'free' to not set errno.  Rich Felker points out
some scenarios when glibc 'free' might set errno; see
<https://sourceware.org/ml/libc-alpha/2015-02/msg00067.html>.  These scenarios
should be investigated and fixed.

Also, the glibc documentation should be updated to make it clear to users that
glibc 'free' does not set errno, and that any replacements for 'free' should do
the same.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]