aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index e63dcecee..a001778dd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3787,9 +3787,6 @@ show_error:
if(headerfilep)
fclose(headerfilep);
- if (httpgetfields)
- free(httpgetfields);
-
if(url)
free(url);
@@ -3832,6 +3829,9 @@ show_error:
} /* while-loop through all URLs */
quit_curl:
+ if (httpgetfields)
+ free(httpgetfields);
+
if (config->engine)
free(config->engine);