aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-13 01:22:54 +0800
committerDan Winship <danw@src.gnome.org>2001-04-13 01:22:54 +0800
commit13acd44e987b0a08053f7970232ce3ca3fcf4fd0 (patch)
tree744bc79aa9cf6687758fbb71d594c7b49aa8bbfe /camel
parent351be10bd9a2cba0a1527ed361df039e7d72c384 (diff)
downloadgsoc2013-evolution-13acd44e987b0a08053f7970232ce3ca3fcf4fd0.tar.gz
gsoc2013-evolution-13acd44e987b0a08053f7970232ce3ca3fcf4fd0.tar.zst
gsoc2013-evolution-13acd44e987b0a08053f7970232ce3ca3fcf4fd0.zip
Plug memory leaks.
* providers/imap/camel-imap-message-cache.c (camel_imap_message_cache_remove): * camel-url.c (camel_url_to_string): Plug memory leaks. svn path=/trunk/; revision=9271
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-url.c1
-rw-r--r--camel/providers/imap/camel-imap-message-cache.c1
3 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6cd06ce3f9..f2191a0605 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-12 Dan Winship <danw@ximian.com>
+
+ * providers/imap/camel-imap-message-cache.c
+ (camel_imap_message_cache_remove):
+ * camel-url.c (camel_url_to_string): Plug memory leaks.
+
2001-04-11 Dan Winship <danw@ximian.com>
* providers/imap/camel-imap-utils.c (imap_parse_string_generic):
diff --git a/camel/camel-url.c b/camel/camel-url.c
index d81871b809..e52206137e 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -333,6 +333,7 @@ camel_url_to_string (CamelURL *url, guint32 flags)
if (url->host) {
enc = camel_url_encode (url->host, TRUE, ":/");
g_string_sprintfa (str, "%s%s", url->user ? "@" : "", enc);
+ g_free (enc);
}
if (url->port)
g_string_sprintfa (str, ":%d", url->port);
diff --git a/camel/providers/imap/camel-imap-message-cache.c b/camel/providers/imap/camel-imap-message-cache.c
index 474a2f2f80..cd96409515 100644
--- a/camel/providers/imap/camel-imap-message-cache.c
+++ b/camel/providers/imap/camel-imap-message-cache.c
@@ -263,6 +263,7 @@ camel_imap_message_cache_remove (CamelImapMessageCache *cache, const char *uid)
key = subparts->pdata[i];
path = g_strdup_printf ("%s/%s", cache->path, key);
unlink (path);
+ g_free (path);
stream = g_hash_table_lookup (cache->parts, key);
if (stream) {
camel_object_unhook_event (stream, "finalize",