X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Frecur.c;h=a0bb86818d28bd53fbbd6882ee876a9a7f970e6b;hp=921c60c787848c1315847d096d8ab6fe6b511a91;hb=cbd54b549a49465d4545c136d8061f6ef3889a30;hpb=a5c222fa798673319e930e944d8d59cd906361fc diff --git a/src/recur.c b/src/recur.c index 921c60c7..a0bb8681 100644 --- a/src/recur.c +++ b/src/recur.c @@ -217,8 +217,9 @@ retrieve_tree (const char *start_url, struct iri *pi) start_url_parsed = url_parse (start_url, &up_error_code, i); if (!start_url_parsed) { - logprintf (LOG_NOTQUIET, "%s: %s.\n", start_url, - url_error (up_error_code)); + char *error = url_error (start_url, up_error_code); + logprintf (LOG_NOTQUIET, "%s: %s.\n", start_url, error); + xfree (error); return URLERROR; }