Skip to content
Snippets Groups Projects
Commit 2164d760 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent b9c8de59
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment