mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:53:49 +03:00
url: alloc the download buffer at transfer start
... and free it as soon as the transfer is done. It removes the extra alloc when a new size is set with setopt() and reduces memory for unused easy handles. In addition: the closure_handle now doesn't use an allocated buffer at all but the smallest supported size as a stack based one. Closes #5472
This commit is contained in:
parent
842f73de58
commit
c4e6968127
10 changed files with 66 additions and 105 deletions
|
|
@ -34,10 +34,7 @@ nothing
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<stdout>
|
||||
seen custom_calloc()
|
||||
seen custom_malloc()
|
||||
seen custom_realloc()
|
||||
seen custom_free()
|
||||
Callbacks were invoked!
|
||||
</stdout>
|
||||
</verify>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue