[PATCH v2] Reclaim _REENT_MP_P5S in _reclaim_reent

Corinna Vinschen vinschen@redhat.com
Mon Nov 20 10:23:37 GMT 2023


On Nov 20 12:04, chrisj@rtems.org wrote:
> From: Chris Johns <chrisj@rtems.org>
> 
> The _REENT_MP_P5S blocks are allocated using Balloc via i2b and linked in the
> pow5mult call. As a result these blocks are not on the freelist managed by the
> Bfree call. This change fixes a memory leak in threads that clean up using
> _reclaim_reent.
> 
> RTEMS: Closes #4967
> ---
>  newlib/libc/reent/reent.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Pushed.

Thanks,
Corinna



More information about the Newlib mailing list