<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3220: memory leak in mutt_edit_headers()



#3220: memory leak in mutt_edit_headers()
--------------------+-------------------------------------------------------
 Reporter:  int-e   |       Owner:  mutt-dev
     Type:  defect  |      Status:  new     
 Priority:  minor   |   Milestone:          
Component:  mutt    |     Version:  1.5.19  
 Keywords:          |  
--------------------+-------------------------------------------------------
 If the user adds a {{{References:}}} header to the edited mail with
 {{{$edit_headers}}} set, then the contents of the header is never freed.

 See http://dev.mutt.org/hg/mutt/file/39fee3a9d034/headers.c#l113 - the
 header is question is parsed to the {{{n->references}}} list.

 The fix is to add {{{mutt_free_list (&n->references);}}} before the
 assignment.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3220>
Mutt <http://www.mutt.org/>
The Mutt mail user agent