summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 87fa2e09..d1c3c3e7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2135,9 +2135,7 @@ only if outputting to a regular file.\n"));
if (!url_parsed)
{
- char *error = url_error (t, url_err);
- logprintf (LOG_NOTQUIET, "%s: %s.\n",t, error);
- xfree (error);
+ logprintf (LOG_NOTQUIET, "%s: %s.\n", t, url_error (url_err));
inform_exit_status (URLERROR);
}
else