]> sjero.net Git - wget/blobdiff - src/recur.c
Automated merge.
[wget] / src / recur.c
index 71fbe7bf1f73767b47b105e44042cb6e81cb8c88..119896ce4431bbf1088951a57b8731e123b46f6c 100644 (file)
@@ -206,8 +206,9 @@ retrieve_tree (const char *start_url)
   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;
     }