From 8010507d7381fce98d2fe9188bc35d8b2c369ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 27 Feb 2020 11:35:50 +0100 Subject: [PATCH] * src/http.c (http_loop): Avoid unneeded strdup --- src/http.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 796c1f8b..0e5c7f08 100644 --- a/src/http.c +++ b/src/http.c @@ -4868,7 +4868,10 @@ exit: /* Bugfix: Prevent SIGSEGV when hstat.local_file was left NULL (i.e. due to opt.content_disposition). */ if (hstat.local_file) - *local_file = xstrdup (hstat.local_file); + { + *local_file = hstat.local_file; + hstat.local_file = NULL; + } } free_hstat (&hstat);