[Mutt] #3303: mh_buffy leaks memory
#3303: mh_buffy leaks memory
--------------------+-------------------------------------------------------
Reporter: kees | Owner: mutt-dev
Type: defect | Status: new
Priority: minor | Milestone:
Component: mutt | Version:
Keywords: |
--------------------+-------------------------------------------------------
{{{
==27761== 762,246 bytes in 135 blocks are definitely lost in loss record
69 of 69
==27761== at 0x4C279E1: realloc (vg_replace_malloc.c:429)
==27761== by 0x474BB4: safe_realloc (lib.c:176)
==27761== by 0x442FF4: mhs_set (mh.c:102)
==27761== by 0x4431B2: mh_read_sequences (mh.c:201)
==27761== by 0x443F7F: mh_buffy (mh.c:236)
==27761== by 0x40FDDD: mutt_buffy_check (buffy.c:427)
==27761== by 0x420034: mutt_index_menu (curs_main.c:535)
==27761== by 0x43D6C6: main (main.c:1026)
}}}
Looks like the mhs flags aren't free; attached patch solves this.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3303>
Mutt <http://www.mutt.org/>
The Mutt mail user agent