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/camel-data-cache.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/camel-data-cache.c') 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 v1.2.3