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

Bug #305468 reported by Ishkur
2
Affects Status Importance Assigned to Milestone
enchant (Ubuntu)
Expired
Undecided
Unassigned

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

Revision history for this message
RansomStark (ransomstark) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. It would help us a lot if you could test it on a currently supported Ubuntu version. When you test it and it is still an issue, kindly upload the updated logs by running apport-collect <bug #> and any other logs that are relevant for this particular issue.

Changed in enchant (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in enchant (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.