diff --git a/newlib/ChangeLog b/newlib/ChangeLog index bd63a90cc..021611054 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2006-10-11 Corinna Vinschen + + * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT. + 2006-09-26 Jeff Johnston * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros diff --git a/newlib/libc/reent/reent.c b/newlib/libc/reent/reent.c index ddf6a8267..5270ef6eb 100644 --- a/newlib/libc/reent/reent.c +++ b/newlib/libc/reent/reent.c @@ -69,6 +69,8 @@ _DEFUN (_reclaim_reent, (ptr), _free_r (ptr, _REENT_MP_FREELIST(ptr)); } + if (_REENT_MP_RESULT(ptr)) + _free_r (ptr, _REENT_MP_RESULT(ptr)); #ifdef _REENT_SMALL if (ptr->_emergency)