projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3266300
)
Fix a small memory leak in procmime_get_mime_type().
author
Andrej Kacian
<ticho@claws-mail.org>
Fri, 28 Jul 2017 17:55:04 +0000
(19:55 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Fri, 28 Jul 2017 17:55:04 +0000
(19:55 +0200)
src/procmime.c
patch
|
blob
|
history
diff --git
a/src/procmime.c
b/src/procmime.c
index 2559dce7f1b3fbe5af481b545a5ada0a340b4856..b07e3f5ac72a7fb2819d1d3e4a0ae8c16be7d414 100644
(file)
--- 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);