mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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.
This commit is contained in:
parent
b9c8de598b
commit
2164d760b7
@ -4159,15 +4159,15 @@ quit_curl:
|
|||||||
if (config->engine)
|
if (config->engine)
|
||||||
free(config->engine);
|
free(config->engine);
|
||||||
|
|
||||||
|
/* cleanup the curl handle! */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
if(config->headerfile && !headerfilep && heads.stream)
|
if(config->headerfile && !headerfilep && heads.stream)
|
||||||
fclose(heads.stream);
|
fclose(heads.stream);
|
||||||
|
|
||||||
if(allocuseragent)
|
if(allocuseragent)
|
||||||
free(config->useragent);
|
free(config->useragent);
|
||||||
|
|
||||||
/* cleanup the curl handle! */
|
|
||||||
curl_easy_cleanup(curl);
|
|
||||||
|
|
||||||
if(config->trace_fopened && config->trace_stream)
|
if(config->trace_fopened && config->trace_stream)
|
||||||
fclose(config->trace_stream);
|
fclose(config->trace_stream);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user