From fb0198094b865a4e355c6ec47275e25c2fde3379 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 22 Nov 2009 13:58:05 +0000 Subject: Squash memory leak svn path=/trunk/netsurf/; revision=9691 --- render/html.c | 5 +++-- 1 file 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, -- cgit v1.2.3