summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/render/html.c b/render/html.c
index 31001f2cb..241d61350 100644
--- a/render/html.c
+++ b/render/html.c
@@ -942,14 +942,15 @@ bool html_find_stylesheets(struct content *c, xmlNode *html)
LOG(("linked stylesheet %i '%s'", i, url));
res = url_normalize(url, &url2);
+
+ free(url);
+
if (res != URL_FUNC_OK) {
if (res == URL_FUNC_NOMEM)
goto no_memory;
continue;
}
- free(url);
-
/* start fetch */
stylesheets = talloc_realloc(c,
c->data.html.stylesheets,