Commit 087748c4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

don't close the trace stream until _after_ the easy handle has been cleaned

up, as that can send traces too
parent e3518774
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3558,15 +3558,15 @@ operate(struct Configurable *config, int argc, char *argv[])
  if(config->headerfile && !headerfilep && heads.stream)
    fclose(heads.stream);

  if(config->trace_fopened && config->trace_stream)
    fclose(config->trace_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);

  if(config->errors_fopened)
    fclose(config->errors);