talons

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

commit 63677adb68c57479f6bc7534cfbf2f234b1f4fb1
parent 3266300edcd71b7f321caad962ee3cbb67466633
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Fri, 28 Jul 2017 19:55:04 +0200

Fix a small memory leak in procmime_get_mime_type().

Diffstat:
Msrc/procmime.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/procmime.c b/src/procmime.c @@ -1120,7 +1120,8 @@ gchar *procmime_get_mime_type(const gchar *filename) debug_print("got type %s for %s\n", str, ext); g_free(ext); return str; - } + } + g_free(ext); return NULL; #else gchar *str = get_content_type_from_registry_with_ext(ext);