aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-data-cache.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index c25feb4098..2005945eb9 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-31 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-data-cache.c (camel_data_cache_get): If we fail to be able
+ to create a stream to insert into the cache, then free the 'real'
+ path.
+
2002-05-30 Not Zed <NotZed@Ximian.com>
* camel-cipher-context.h: Added a protocol field for users to use.
diff --git a/camel/camel-data-cache.c b/camel/camel-data-cache.c
index 9f44a89f5c..91ab7f0588 100644
--- a/camel/camel-data-cache.c
+++ b/camel/camel-data-cache.c
@@ -400,6 +400,8 @@ camel_data_cache_get(CamelDataCache *cdc, const char *path, const char *key, Cam
camel_object_hook_event((CamelObject *)stream, "finalize", stream_finalised, cdc);
g_hash_table_insert(cdc->priv->busy_stream, stream, real);
g_hash_table_insert(cdc->priv->busy_path, real, stream);
+ } else {
+ g_free (real);
}
}