Markus F.X.J. Oberhumer's patch that reduces memory usage quite a bit by

only allocating the scratch memory buffer once it is needed and not always
in the handle.
This commit is contained in:
Daniel Stenberg
2003-01-20 12:52:34 +00:00
parent b5276a9a69
commit 5a83976c99
3 changed files with 10 additions and 1 deletions

View File

@@ -598,7 +598,7 @@ struct UrlState {
struct curl_ssl_session *session; /* array of 'numsessions' size */
long sessionage; /* number of the most recent session */
char scratch[BUFSIZE*2]; /* huge buffer when doing upload CRLF replacing */
char *scratch; /* huge buffer[BUFSIZE*2] when doing upload CRLF replacing */
bool errorbuf; /* Set to TRUE if the error buffer is already filled in.
This must be set to FALSE every time _easy_perform() is
called. */