← Back to team overview

desktop-packages team mailing list archive

[Bug 305468] Re: [Dappar (and Hardy)]Memory leak in enchant - list_dicts

 

[Expired for enchant (Ubuntu) because there has been no activity for 60
days.]

** Changed in: enchant (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to enchant in Ubuntu.
https://bugs.launchpad.net/bugs/305468

Title:
  [Dappar (and Hardy)]Memory leak in enchant - list_dicts

Status in enchant package in Ubuntu:
  Expired

Bug description:
  Binary package hint: libenchant-dev

  Let's see if I can get this right, first bug report :)

  Enchant got a memory leak when listing available dictionaries. (e.g.
  enchant::broker->list_dicts)

  Valgrind output
  ==31679== 352 bytes in 11 blocks are definitely lost in loss record 49 of 78
  ==31679==    at 0x4C23809: operator new(unsigned long) (vg_replace_malloc.c:230)
  ==31679==    by 0x9E618ED: acommon::DictInfoList::elements() const (in /usr/lib/libaspell.so.15.1.4)
  ==31679==    by 0x9C1E15F: (within /usr/lib/enchant/libenchant_aspell.so)
  ==31679==    by 0x56F316F: enchant_broker_list_dicts (in /usr/lib/libenchant.so.1.3.0)
  [...]

  As far as I can tell the leak seams to appear in aspell_provider.c
  (http://www.abisource.com/viewvc/enchant/trunk/src/aspell/aspell_provider.c?view=markup)
  in function aspell_provider_list_dicts

  "AspellDictInfoEnumeration * dels" is not deleted properly (wrong
  place or only deleted once for the two instances)

  Regards
  Jonas

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/enchant/+bug/305468/+subscriptions