From 60a6173744071e0eeacd73cfcba029fa593e81ac Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 31 May 2002 20:04:42 +0000 Subject: If we fail to be able to create a stream to insert into the cache, then 2002-05-31 Jeffrey Stedfast * 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. svn path=/trunk/; revision=17060 --- camel/ChangeLog | 6 ++++++ camel/camel-data-cache.c | 2 ++ 2 files changed, 8 insertions(+) (limited to 'camel') 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 + + * 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 * 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); } } -- cgit