]> sjero.net Git - wget/blobdiff - src/recur.c
Automated merge.
[wget] / src / recur.c
index 921c60c787848c1315847d096d8ab6fe6b511a91..a0bb86818d28bd53fbbd6882ee876a9a7f970e6b 100644 (file)
@@ -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;
     }