summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-31 20:04:42 +0000
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-31 20:04:42 +0000
commitb7632a3be19607201866cdee0535a870826653d5 (patch)
treee83cae9723ccc41798d1ca5347828e065312e57b
parentbf4afc9779af758ff1a0bdbbc0a7dc312c4c7713 (diff)
downloadevolution-data-server-b7632a3be19607201866cdee0535a870826653d5.tar.gz
If we fail to be able to create a stream to insert into the cache, then
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.
-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 c25feb409..2005945eb 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 9f44a89f5..91ab7f058 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);
}
}