Fix typo in reclaim_reent()
Nick Clifton
nickc@redhat.com
Wed Jun 11 10:41:00 GMT 2003
Hi Guys,
I am applying the patch below under the obvious fix rule to correct
a bug in my recent patch to make support for the on_exit() function
dynamic if _REENT_SMALL is defined.
Cheers
Nick
2003-06-11 Nick Clifton <nickc@redhat.com>
* libc/reent/reent.c (reclaim_reent): Fix typo in code to free
_on_exit_args_ptr.
Index: libc/reent/reent.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/reent/reent.c,v
retrieving revision 1.6
diff -c -3 -p -r1.6 reent.c
*** libc/reent/reent.c 6 Jun 2003 15:36:30 -0000 1.6
--- libc/reent/reent.c 11 Jun 2003 08:39:44 -0000
*************** _DEFUN (_reclaim_reent, (ptr),
*** 82,88 ****
if (ptr->_asctime_buf)
_free_r (ptr, ptr->_asctime_buf);
if (ptr->_atexit._on_exit_args_ptr)
! _free_r (ptr->_atexit._on_exit_args_ptr);
#else
/* atexit stuff */
if ((ptr->_atexit) && (ptr->_atexit != &ptr->_atexit0))
--- 82,88 ----
if (ptr->_asctime_buf)
_free_r (ptr, ptr->_asctime_buf);
if (ptr->_atexit._on_exit_args_ptr)
! _free_r (ptr, ptr->_atexit._on_exit_args_ptr);
#else
/* atexit stuff */
if ((ptr->_atexit) && (ptr->_atexit != &ptr->_atexit0))
More information about the Newlib
mailing list