fixed #1097019, multiple GET posts (-G) error
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 Jan 2005 22:25:35 +0000 (22:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Jan 2005 22:25:35 +0000 (22:25 +0000)
src/main.c

index e63dcec..a001778 100644 (file)
@@ -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);