]> git.cworth.org Git - notmuch/commit
fix memory leaks in notmuch-show.c:format_headers_sprinter()
authorJeffrey Stedfast <jestedfa@microsoft.com>
Thu, 16 Mar 2017 16:53:47 +0000 (16:53 +0000)
committerDavid Bremner <david@tethera.net>
Sat, 18 Mar 2017 23:55:15 +0000 (20:55 -0300)
commit195361c8cd100005e6562f54ccab15cb98cb20fd
treebfe67709843e54ecf9cc41768c829d96de0d6caf
parente60b44ecf8bd5934959727496c7ef3016ff80cf6
fix memory leaks in notmuch-show.c:format_headers_sprinter()

Internet_address_list_to_string() and
g_mime_message_get_date_as_string() return allocated string buffers
and not const, so from what I can tell from taking a look at the
sprinter-sexp.c’s sexp_string() function, the code leaks the
recipients_string as well as the date string.
notmuch-show.c