Re: Memory leaks

"Gary Setter" <[email protected]>
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <000401c4bea8$6a61e440$6e144a0c@pavilion>
----- Original Message ----- 
From: "Kevin Atkinson" <[email protected]>
To: "Gary Setter" <[email protected]>
Cc: <[email protected]>
Sent: Friday, October 29, 2004 2:19 PM
Subject: Re: [aspell-devel] Memory leaks


> On Thu, 28 Oct 2004, Gary Setter wrote:
>
> > I'm finding memory leaks with the following commands.
> > check <file>
> > ...
>
> > I plan to take a look and if I have something to contribute,
I'll
> > upload a file to my web site.
>
> There is a known, small, memory leak which I have not had time
to fix.
> I just filed a bug report on it (bug # 1056983):
>
http://sourceforge.net/tracker/index.php?func=detail&aid=1056983&group_id=245&atid=100245
>
> If you find any other memory leaks please let me know.
>

Hi Kevin,

Thanks for submitting the bug log. That was one of the leaks.

The description called this line a cast to memory
    decode_ = new (memory) DecodeNormLookup(i->ptr);

since memory is member data (not a type) I would call this
in-place construction.

I made some changes that pluged that leak. You can see them at
http://home.att.net/~setterg/Aspell6.ZIP

See the top of convert.hpp for a description of what I did.

This zip file also has another fix for String.hpp.

I will continue looking for more memory leaks.

Best regard,
Gary
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.