This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Termios memory leak?
Andrew Lunn wrote:
On Mon, Jul 18, 2005 at 09:29:25AM -0700, Jay Foster wrote:
I ran into the same problem some time ago, and made the following change to
correct it. The bug would leak 8KB of memory each time cyg_io_lookup() was
called for a termios device (after the first time).
Here is what i have committed. I removed the members from the priv
structure as well just to tidy things up.
FAOD that's bound to have been the right thing to do. I suspect errbuf was
just cruft from the initial implementation that was never deleted. I can't
think now what it could have been intended for.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss