From c1a82b06e72a49fb75e51f6876b24240cbb99ce9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 21 Jul 2004 15:55:00 +0000 Subject: Free result after parsing it. Fixes a leak. 2004-07-19 Jeffrey Stedfast * providers/imap/camel-imap-store.c (get_subscribed_folders): Free result after parsing it. Fixes a leak. svn path=/trunk/; revision=26689 --- camel/ChangeLog | 5 +++++ camel/providers/imap/camel-imap-store.c | 1 + 2 files changed, 6 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index b636210fb2..657dcbe72c 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2004-07-19 Jeffrey Stedfast + + * providers/imap/camel-imap-store.c (get_subscribed_folders): Free + result after parsing it. Fixes a leak. + 2004-07-19 Not Zed * camel-mime-filter-canon.c (filter): only copy 5 chars after the diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 3402dc8af8..e87e334a65 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -2479,6 +2479,7 @@ get_subscribed_folders (CamelImapStore *imap_store, const char *top, CamelExcept } fi = parse_list_response_as_folder_info (imap_store, result); + g_free (result); if (!fi) continue; -- cgit