talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 35b475054e4ee9b287d2bdde01d4c508df42b7ce
parent f21505305f6054677f80c18c7bd813623b947b29
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sun,  9 Jun 2024 11:53:05 +0200

Fix CID 1498807: Resource leak

Diffstat:
Msrc/plugins/litehtml_viewer/lh_viewer.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/plugins/litehtml_viewer/lh_viewer.c b/src/plugins/litehtml_viewer/lh_viewer.c @@ -65,6 +65,7 @@ static void lh_show_mimepart(MimeViewer *_viewer, const gchar *infile, utf8 = g_convert(string, -1, "utf-8", charset, NULL, &length, &error); if (error) { g_warning("LH: failed mimepart conversion to UTF-8: %s", error->message); + g_free(utf8); g_free(string); g_error_free(error); return;