]> granicus.if.org Git - curl/commit
urldata: clean up the use of the protocol specific structs
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 Aug 2013 17:34:16 +0000 (19:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2013 11:17:57 +0000 (13:17 +0200)
commit4ad8e142da463ab208d5b5565e53291c8e5ef038
treed50e9d8c79ee1a8b1b1a71894b033808a68eab59
parente3ee73b70ceaf2663fc2d26a4102e131a7c9618d
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.
14 files changed:
lib/easy.c
lib/file.c
lib/ftp.c
lib/http.c
lib/http.h
lib/imap.c
lib/pop3.c
lib/rtsp.c
lib/smtp.c
lib/ssh.c
lib/tftp.c
lib/url.c
lib/url.h
lib/urldata.h