From c4e6968127e876b01e5e0b4b7cdbc49d5267530c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 28 May 2020 18:30:47 +0200 Subject: 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 --- tests/data/test509 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/data') diff --git a/tests/data/test509 b/tests/data/test509 index 5de1599e1..0e0dd212b 100644 --- a/tests/data/test509 +++ b/tests/data/test509 @@ -34,10 +34,7 @@ nothing # Verify data after the test has been "shot" -seen custom_calloc() -seen custom_malloc() -seen custom_realloc() -seen custom_free() +Callbacks were invoked! -- cgit v1.2.3