aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-07 11:05:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-07 11:05:34 +0000
commit2164d760b78f3813171aa3ca3adb70f33e292c08 (patch)
tree4e13dc2d09d484ed3e48bda2c4c380de28e4803b
parentb9c8de598beefe782e2ba7d4f346feb8b549399e (diff)
Ben Madsen reported a problem that only seemed to occur with certain specific
glibc versions, and with this patch applied it no longer shows up to me. The problem was indeed a flaw that made curl use a file handle already closed.
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 7ab1c94e6..dd197c779 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4159,15 +4159,15 @@ quit_curl:
if (config->engine)
free(config->engine);
+ /* cleanup the curl handle! */
+ curl_easy_cleanup(curl);
+
if(config->headerfile && !headerfilep && heads.stream)
fclose(heads.stream);
if(allocuseragent)
free(config->useragent);
- /* cleanup the curl handle! */
- curl_easy_cleanup(curl);
-
if(config->trace_fopened && config->trace_stream)
fclose(config->trace_stream);