aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] Memory leaks


From: Kevin Atkinson
Subject: Re: [aspell-devel] Memory leaks
Date: Sun, 31 Oct 2004 22:08:29 -0700 (MST)

On Sun, 31 Oct 2004, Gary Setter wrote:

> > > Most of the memory leaks are gone. But these remain.
> > > > dump master
> >
> > I don't see any when I use that command.
> >
> Hi Kevin,
> 
> This is good. I had a leak, found it and I don't know why you
> didn't have one. It centers on how your global cache works.
> 
> This is my new dump master code, note the new like with todays
> date.
> 
>   } else if (action == do_dump) {
>     EXIT_ON_ERR_SET(add_data_set(config->retrieve("master-path"),
> *config), Dict *, d);
>     StackPtr<Convert> conv(setup_conv(d->lang(), config));
>     dump(d, conv);
>     d->release(); //31-Oct-04
>   }
> 
> What you may have intended, was to keep the Dict (aka Dictionary)
> object in the global cache and let the destructor of the cache
> delete it it. But your ~GlobalCacheBase does not release/delete
> anything. How come you are not getting a memory leak?

It could be that there is a global pointer still pointing to it when the 
program exits as the tool I use (valgrind) distinguishes between two memory 
leaks and data pointed to by global variables that was not freed at 
program exit.

Please file a bug report.  I will look into it more closely when I have the 
time.

-- 
http://kevin.atkinson.dhs.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]