]> sourceware.org Git - newlib-cygwin.git/commit
Fix atexit logic to honor _ATEXIT_DYNAMIC_ALLOC setting.
authorJeff Johnston <jjohnstn@redhat.com>
Mon, 21 Dec 2015 16:53:14 +0000 (11:53 -0500)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 21 Dec 2015 16:53:14 +0000 (11:53 -0500)
commitc2bbc54a62da248a1b828bb6c0518185be3324eb
treee6f4e9966c58c3315115a0a837e22cc1f51049ea
parentd2bb300b9bb7917d33e3bc37fca3bf6ee6e5fcc4
Fix atexit logic to honor _ATEXIT_DYNAMIC_ALLOC setting.

If small reent is enabled (_REENT_SMALL is defined) then malloc() was
used in __register_exitproc() even if user requested it to be disabled
(_ATEXIT_DYNAMIC_ALLOC is defined). With this fix, function fails when
_ATEXIT_DYNAMIC_ALLOC is defined and whole static storage is already
used.

2015-12-21  Freddie Chopin  <freddie.chopin@gmail.com>

        * libc/stdlib/__atexit.c (__register_exitproc): Fix for
        _ATEXIT_DYNAMIC_ALLOC.
newlib/ChangeLog
newlib/libc/stdlib/__atexit.c
This page took 0.029429 seconds and 5 git commands to generate.