aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-data-cache.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-06-01 04:04:42 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-01 04:04:42 +0800
commit60a6173744071e0eeacd73cfcba029fa593e81ac (patch)
treea85d7e8fbca1d3078192ad754fc71c6691131743 /camel/camel-data-cache.c
parent1c309b14c41ba3305bc72404fa290769251fda4a (diff)
downloadgsoc2013-evolution-60a6173744071e0eeacd73cfcba029fa593e81ac.tar
gsoc2013-evolution-60a6173744071e0eeacd73cfcba029fa593e81ac.tar.gz
gsoc2013-evolution-60a6173744071e0eeacd73cfcba029fa593e81ac.tar.bz2
gsoc2013-evolution-60a6173744071e0eeacd73cfcba029fa593e81ac.tar.lz
gsoc2013-evolution-60a6173744071e0eeacd73cfcba029fa593e81ac.tar.xz
gsoc2013-evolution-60a6173744071e0eeacd73cfcba029fa593e81ac.tar.zst
gsoc2013-evolution-60a6173744071e0eeacd73cfcba029fa593e81ac.zip
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. svn path=/trunk/; revision=17060
Diffstat (limited to 'camel/camel-data-cache.c')
-rw-r--r--camel/camel-data-cache.c2
1 files changed, 2 insertions, 0 deletions
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);
}
}