diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-08-04 19:34:16 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-08-12 13:17:57 +0200 |
commit | 4ad8e142da463ab208d5b5565e53291c8e5ef038 (patch) | |
tree | d50e9d8c79ee1a8b1b1a71894b033808a68eab59 /lib/easy.c | |
parent | e3ee73b70ceaf2663fc2d26a4102e131a7c9618d (diff) | |
download | curl-4ad8e142da463ab208d5b5565e53291c8e5ef038.tar.gz |
urldata: clean up the use of the protocol specific structs
1 - always allocate the struct in protocol->setup_connection. Some
protocol handlers had to get this function added.
2 - always free at the end of a request. This is also an attempt to keep
less memory in the handle after it is completed.
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/easy.c b/lib/easy.c index 041a831b1..0ad03f961 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -602,9 +602,8 @@ void Curl_easy_addmulti(struct SessionHandle *data, void Curl_easy_initHandleData(struct SessionHandle *data) { - memset(&data->req, 0, sizeof(struct SingleRequest)); - - data->req.maxdownload = -1; + memset(&data->req, 0, sizeof(struct SingleRequest)); + data->req.maxdownload = -1; } /* |