diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 2 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 5 | ||||
-rw-r--r-- | camel/providers/mbox/camel-mbox-store.c | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 0572761257..17bccfc015 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -7,6 +7,8 @@ * camel-object.c (camel_type_lock_up): Don't leave the type system locked when a bad unlock happens. + * providers/mbox/camel-mbox-store.c (get_folder): Fix a leak. + 2000-08-15 Peter Williams <peterw@helixcode.com> * providers/imap/camel-imap-folder.c (imap_copy_message_to): Typo fix. 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)); |