diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-09-07 11:05:34 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-09-07 11:05:34 +0000 |
commit | 2164d760b78f3813171aa3ca3adb70f33e292c08 (patch) | |
tree | 4e13dc2d09d484ed3e48bda2c4c380de28e4803b | |
parent | b9c8de598beefe782e2ba7d4f346feb8b549399e (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.c | 6 |
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); |