Fix a small memory leak in procmime_get_mime_type().
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 28 Jul 2017 17:55:04 +0000 (19:55 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 28 Jul 2017 17:55:04 +0000 (19:55 +0200)
src/procmime.c

index 2559dce..b07e3f5 100644 (file)
@@ -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);