From 138e837457562c0041606e089c7e5510007828dc Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sat, 26 Dec 2009 14:16:51 +0100 Subject: [PATCH] Free the URI when the file was already cached --- extensions/web-cache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/web-cache.c b/extensions/web-cache.c index eb4b88f4..196ab0e7 100644 --- a/extensions/web-cache.c +++ b/extensions/web-cache.c @@ -277,7 +277,10 @@ web_cache_mesage_got_headers_cb (SoupMessage* msg, { /* g_debug ("updating cache: %s -> %s", uri, filename); */ if (!web_cache_tmp_prepare (filename)) + { + g_free (uri); return; + } web_cache_save_headers (msg, filename); g_signal_connect_data (msg, "got-chunk", G_CALLBACK (web_cache_message_got_chunk_cb), -- 2.39.5