curl-users
Re: Crash on FTP and --dump-header
Date: Wed, 7 Sep 2005 13:04:16 +0200 (CEST)
On Tue, 6 Sep 2005, Ben Madsen - Mailing List wrote:
> Hmm... nevermind about the Debian Sarge installation. I upgraded to 7.13.2-2
> on that and it now works fine. Still having the issues on Fedora though.
I fixed the problem in my end with the following patch, it would be fun to
hear what it does in your end:
--- src/main.c 4 Sep 2005 05:23:09 -0000 1.331
+++ src/main.c 7 Sep 2005 11:03:19 -0000
@@ -4159,15 +4159,15 @@
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);
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-09-07