summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/fetchcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c
index 87732d49e..243d5c04b 100644
--- a/content/fetchcache.c
+++ b/content/fetchcache.c
@@ -752,7 +752,8 @@ void fetchcache_error_page(struct content *c, const char *error,
fetchcache_search_redirect(c, error);
free(host);
return;
- }
+ } else
+ free(host);
}
if ((length = snprintf(error_page, sizeof(error_page),
messages_get("ErrorPage"), error)) < 0)