[Bug 1246] memory leak: newlib reent struct not cleaned up from libc_delete_hook

rtems-bugs at rtems.org rtems-bugs at rtems.org
Fri Aug 24 01:05:08 UTC 2007


http://www.rtems.org/bugzilla/show_bug.cgi?id=1246





------- Comment #1 from strauman at slac.stanford.edu  2007-08-23 20:05 -------
Created an attachment (id=508)
 --> (http://www.rtems.org/bugzilla/attachment.cgi?id=508&action=view)
Fix memory leak; use newlibc reclaim_reent.

Let the libc_delete_hook use newlibc's 'reclaim_reent()' routine to release
memory used by FILEs (and in the future maybe other stuff). IMO it is
preferrable
to not rely on knowledge about newlibc's inner workings in rtems' libcsupport
code. Unfortunately, 'reclaim_reent()' has a few side effects that need to be
supressed by means of a newlibc patch (consult separate attachment).


-- 
Configure bugmail: http://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the bugs mailing list