aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-06-01 05:40:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-01 05:40:07 +0800
commit8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c (patch)
tree1b89ab7bfde08c3e432e98d74ac3e75373ceacd1 /camel/providers
parenta49a16f48046962318d080e23d3886057cd27ee9 (diff)
downloadgsoc2013-evolution-8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c.tar
gsoc2013-evolution-8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c.tar.gz
gsoc2013-evolution-8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c.tar.bz2
gsoc2013-evolution-8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c.tar.lz
gsoc2013-evolution-8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c.tar.xz
gsoc2013-evolution-8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c.tar.zst
gsoc2013-evolution-8c4223b4c440d5b94eddaf0fe7bd8f1489186c2c.zip
Free the path buffer when we're done with it.
2002-05-31 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-message-cache.c (camel_imap_message_cache_get): Free the path buffer when we're done with it. * providers/imap/camel-imap-folder.c (imap_update_summary): Free the final tagged response buffer. svn path=/trunk/; revision=17065
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c3
-rw-r--r--camel/providers/imap/camel-imap-message-cache.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 156111083a..76ceb5a796 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -1990,6 +1990,9 @@ imap_update_summary (CamelFolder *folder, int exists,
if (type == CAMEL_IMAP_RESPONSE_ERROR)
goto lose;
+ /* Free the final tagged response */
+ g_free (resp);
+
/* Figure out which headers we still need to fetch. */
needheaders = g_ptr_array_new ();
size = got = 0;
diff --git a/camel/providers/imap/camel-imap-message-cache.c b/camel/providers/imap/camel-imap-message-cache.c
index f7ed6e2a5e..0138441b3b 100644
--- a/camel/providers/imap/camel-imap-message-cache.c
+++ b/camel/providers/imap/camel-imap-message-cache.c
@@ -406,14 +406,15 @@ camel_imap_message_cache_get (CamelImapMessageCache *cache, const char *uid,
if (stream) {
camel_stream_reset (CAMEL_STREAM (stream));
camel_object_ref (CAMEL_OBJECT (stream));
+ g_free (path);
return stream;
}
-
+
stream = camel_stream_fs_new_with_name (path, O_RDONLY, 0);
if (stream)
cache_put (cache, uid, key, stream);
g_free (path);
-
+
return stream;
}