]> git.notmuchmail.org Git - notmuch/commit
cli/reply: fix two memory leaks, document a third
authorDavid Bremner <david@tethera.net>
Sat, 27 May 2017 16:51:15 +0000 (13:51 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 30 May 2017 12:02:29 +0000 (09:02 -0300)
commit233092577cdcb86e3e38374a50a3a26c05474126
treeb5167aa53eec49e0e53fa6e879211fdb22808e91
parente86fa3226cbd3c28106828f079a9c0d5d27299b8
cli/reply: fix two memory leaks, document a third

internet_address_list_to_string returns an allocated string, which
needs to be freed with g_free. g_free can handle a NULL argument, so
we follow the usage elsewhere of calling it unconditionally.

The third leak we leave as it would require restructuring of
add_recipients_from_message, and is fixed by later gmime-3.0 porting.
notmuch-reply.c