From: David Woodhouse Date: Wed, 25 Aug 2010 18:19:48 +0000 (+0100) Subject: Fix another memory leak in imapx qresync X-Git-Tag: upstream/3.7.4~2707 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc3d6310a56e1ec2d52e9f400fb726ce692bd49c;p=platform%2Fupstream%2Fevolution-data-server.git Fix another memory leak in imapx qresync --- diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c index 2e4ec78..29b417d 100644 --- a/camel/providers/imapx/camel-imapx-server.c +++ b/camel/providers/imapx/camel-imapx-server.c @@ -2522,7 +2522,7 @@ imapx_select (CamelIMAPXServer *is, CamelFolder *folder, gboolean forced, GError i = 3; do { gchar buf[10]; - + gchar *uid; i *= 3; if (i > total) i = total; @@ -2537,7 +2537,9 @@ imapx_select (CamelIMAPXServer *is, CamelFolder *folder, gboolean forced, GError the summary starts from zero. */ sprintf(buf, "%d", total - i + 1); g_string_prepend(seqs, buf); - g_string_prepend(uids, camel_folder_summary_uid_from_index(folder->summary, total - i)); + uid = camel_folder_summary_uid_from_index(folder->summary, total - i); + g_string_prepend(uids, uid); + g_free(uid); } while (i < total); g_string_prepend(seqs, " (");