mirror of
https://github.com/curl/curl.git
synced 2026-07-26 12:37:16 +03:00
Move the explictit free of the range string to Curl_close() from Curl_disconnect()
since it easy-handle related and not connection-related.
This commit is contained in:
parent
61edee979f
commit
7a0e0c36c5
1 changed files with 3 additions and 6 deletions
|
|
@ -310,6 +310,9 @@ CURLcode Curl_close(struct SessionHandle *data)
|
|||
}
|
||||
}
|
||||
|
||||
if(data->reqdata.rangestringalloc)
|
||||
free(data->reqdata.range);
|
||||
|
||||
/* Free the pathbuffer */
|
||||
Curl_safefree(data->reqdata.pathbuffer);
|
||||
Curl_safefree(data->reqdata.proto.generic);
|
||||
|
|
@ -1827,12 +1830,6 @@ CURLcode Curl_disconnect(struct connectdata *conn)
|
|||
NULL, Curl_scan_cache_used);
|
||||
#endif
|
||||
|
||||
/* cleanups done even if the connection is re-used */
|
||||
if(data->reqdata.rangestringalloc) {
|
||||
free(data->reqdata.range);
|
||||
data->reqdata.rangestringalloc = FALSE;
|
||||
}
|
||||
|
||||
Curl_expire(data, 0); /* shut off timers */
|
||||
Curl_hostcache_prune(data); /* kill old DNS cache entries */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue