aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-08-17 22:19:02 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-08-17 22:19:02 +0800
commit24feba20337274a86d51700fa0e8f56ce378c902 (patch)
tree78effe172324ffdb993888b9a3d7345d7ec209b3 /camel/providers/imap
parent1cb1a157cb489f3b8dd49bed81bad7c9dec33f7e (diff)
downloadgsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar.gz
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar.zst
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.zip
Whole buncha leak fixes thanks to Purify
svn path=/trunk/; revision=4862
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-folder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 84a0805727..2118554607 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -969,6 +969,7 @@ imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex)
d(fprintf (stderr, "*** We're returning... ***\n"));
+ g_free (mesg);
return msg;
#if 0
@@ -1085,7 +1086,7 @@ imap_get_summary_internal (CamelFolder *folder, CamelException *ex)
char *result, *q, *node;
const char *received;
char *summary_specifier;
- struct _header_raw *h, *tail = NULL;
+ struct _header_raw *h = NULL, *tail = NULL;
num = imap_get_message_count_internal (folder, ex);
@@ -1252,7 +1253,7 @@ imap_get_summary_internal (CamelFolder *folder, CamelException *ex)
if (info->references == NULL)
info->references = header_references_decode (header_raw_find (&h, "in-reply-to", NULL));
- while (h->next) {
+ while (h) {
struct _header_raw *next = h->next;
g_free (h->name);