projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b631c
)
Fix another (not so big but still common) leak, thanks to valgrind.
author
wwp
<wwp@free.fr>
Mon, 16 Jan 2017 10:03:35 +0000
(11:03 +0100)
committer
wwp
<wwp@free.fr>
Mon, 16 Jan 2017 10:03:35 +0000
(11:03 +0100)
src/mh.c
patch
|
blob
|
history
diff --git
a/src/mh.c
b/src/mh.c
index a54de02ba40877d71a66868f236dffed6d04fe91..50999e746f0749c37bc9c955fb8f14e6564d4b48 100644
(file)
--- a/
src/mh.c
+++ b/
src/mh.c
@@
-732,9
+732,12
@@
static gboolean mh_is_msg_changed(Folder *folder, FolderItem *item,
{
GStatBuf s;
gchar *path;
+ gchar *parent_path;
- path = g_strdup_printf("%s%c%d", folder_item_get_path(item),
+ parent_path = folder_item_get_path(item);
+ path = g_strdup_printf("%s%c%d", parent_path,
G_DIR_SEPARATOR, msginfo->msgnum);
+ g_free(parent_path);
if (g_stat((path), &s) < 0 ||
msginfo->size != s.st_size || (
(msginfo->mtime - s.st_mtime != 0) &&