aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
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
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')
-rw-r--r--camel/providers/imap/camel-imap-folder.c5
-rw-r--r--camel/providers/mbox/camel-mbox-store.c3
2 files changed, 5 insertions, 3 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);
diff --git a/camel/providers/mbox/camel-mbox-store.c b/camel/providers/mbox/camel-mbox-store.c
index e90c90275e..ed56e84407 100644
--- a/camel/providers/mbox/camel-mbox-store.c
+++ b/camel/providers/mbox/camel-mbox-store.c
@@ -148,7 +148,8 @@ get_folder (CamelStore *store, const char *folder_name, gboolean create,
name);
g_free (name);
return NULL;
- }
+ } else
+ g_free (name);
new_folder = CAMEL_FOLDER (camel_object_new (CAMEL_MBOX_FOLDER_TYPE));