#3822: [PATCH] Fix ~20 resource leaks on error paths
---------------------+----------------------
 Reporter:  flatcap  |      Owner:  mutt-dev
     Type:  defect   |     Status:  new
 Priority:  minor    |  Milestone:
Component:  build    |    Version:  1.5.24
 Keywords:  patch    |
---------------------+----------------------
 - attach.c  - mutt_get_tmp_attachment()
 - edit.c    - mutt_builtin_editor()
 - init.c    - add_to_spam_list()
 - mbox.c    - mbox_sync_mailbox()
 - pattern.c - msg_search()
 - recvcmd.c - attach_forward_bodies()
 - rfc2047.c - mutt_choose_charset()
 - send.c    - mutt_resend_message()
 - sendlib.c - write_one_header()

 Most of these are simple leaks of memory and file handle of error paths.
 In sendlib.c, I add an missing unlink() for the temporary file.

 There are also two notes where there *isn't* a leak, but it looks like
 there ought to be.

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

Reply via email to