#108 memory leak on 'dump master' command.

true-bug (70)
Gary Setter

The program leaks memory when the 'dump master'
command is given.

Note that the Dict (aka Dictionary) object is not
released after it is used.


  • Kevin Atkinson

    Kevin Atkinson - 2004-11-01

    Logged In: YES

    More specific info:

    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

    } else if (action == do_dump) {

    *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
    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?

  • Kevin Atkinson

    Kevin Atkinson - 2004-11-01
    • labels: --> true-bug
    • priority: 5 --> 3
    • assigned_to: nobody --> kevina
  • Kevin Atkinson

    Kevin Atkinson - 2006-11-24

    Logged In: YES
    Originator: NO

    Yes there is a leak.

    However, d->release() does not fix it.

    I need to study how dictionaries are normally deleted before I can determine the correct way to fix this.

  • Kevin Atkinson

    Kevin Atkinson - 2010-03-04

    What version of Aspell is this. Use "aspell -v" to find out.

  • Kevin Atkinson

    Kevin Atkinson - 2010-03-04
    • milestone: --> 0.60
  • Kevin Atkinson

    Kevin Atkinson - 2016-12-11
    • Status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks