diff options
Diffstat (limited to 'camel/providers/imap/camel-imap-message-cache.c')
-rw-r--r-- | camel/providers/imap/camel-imap-message-cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-message-cache.c b/camel/providers/imap/camel-imap-message-cache.c index f7ed6e2a5e..0138441b3b 100644 --- a/camel/providers/imap/camel-imap-message-cache.c +++ b/camel/providers/imap/camel-imap-message-cache.c @@ -406,14 +406,15 @@ camel_imap_message_cache_get (CamelImapMessageCache *cache, const char *uid, if (stream) { camel_stream_reset (CAMEL_STREAM (stream)); camel_object_ref (CAMEL_OBJECT (stream)); + g_free (path); return stream; } - + stream = camel_stream_fs_new_with_name (path, O_RDONLY, 0); if (stream) cache_put (cache, uid, key, stream); g_free (path); - + return stream; } |