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/urldata.h | |
parent | e3ee73b70ceaf2663fc2d26a4102e131a7c9618d (diff) |
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/urldata.h')
-rw-r--r-- | lib/urldata.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index d597c6744..7c150a55c 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1277,9 +1277,10 @@ struct UrlState { /* Protocol specific data. * ************************************************************************* - * Note that this data will be REMOVED after each request, so anything that - * should be kept/stored on a per-connection basis and thus live for the - * next request on the same connection MUST be put in the connectdata struct! + * Note that this data will be freed after each request is DONE, so anything + * that should be kept/stored on a per-connection basis and thus live for + * the next request on the same connection MUST be put in the connectdata + * struct! *************************************************************************/ union { struct HTTP *http; |