summaryrefslogtreecommitdiff
path: root/libsoup/soup-message-client-io.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-09-19 16:54:11 +0000
committerDan Winship <danw@src.gnome.org>2003-09-19 16:54:11 +0000
commited203a51133ed83ba407b0d6b537e0559f86ae87 (patch)
treefdfb8a2fc98b16129892246b62fe18957ce73408 /libsoup/soup-message-client-io.c
parent0bb5e818f98c8e877692c1fb759276e89d2082bb (diff)
downloadlibsoup-ed203a51133ed83ba407b0d6b537e0559f86ae87.tar.gz
free the hostent.
* libsoup/soup-address.c (update_address_from_entry): free the hostent. * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Don't leak the domain * libsoup/soup-gnutls.c (soup_gnutls_get_iochannel): Add some more iochannel initialization. Not sure how this worked before... * libsoup/soup-message.c (soup_message_cleanup_response): Renamed from soup_message_prepare (and a few things removed). * libsoup/soup-message-client-io.c (soup_message_send_request): s/soup_message_prepare/soup_message_cleanup_response/ * libsoup/soup-message-io.c (io_read): Replace the final "\r\n" with "\0" on the headers before passing them to the parse function. (io_read): Call soup_message_cleanup_response after returning an informational response so the data doesn't leak. * libsoup/soup-headers.c (soup_headers_parse): Update for soup-message-io.c:io_read change * libsoup/soup-server.c (soup_server_new, soup_server_new_with_host): Don't leak the SoupAddress. * libsoup/soup-session.c (class_init): Make PROP_PROXY_URI not CONSTRUCT_ONLY. (set_property): If the proxy uri changes, call soup_session_abort() and cleanup_hosts(). (request_finished, final_finished): Fix a bug when requeuing messages. * tests/libsoup.supp: valgrind suppression file for soup tests * tests/Makefile.am (EXTRA_DIST): dist it. (noinst_PROGRAMS): move the former check_PROGRAMS to noinst_PROGRAMS instead.
Diffstat (limited to 'libsoup/soup-message-client-io.c')
-rw-r--r--libsoup/soup-message-client-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-message-client-io.c b/libsoup/soup-message-client-io.c
index 1da52e26..39cc7285 100644
--- a/libsoup/soup-message-client-io.c
+++ b/libsoup/soup-message-client-io.c
@@ -159,7 +159,7 @@ void
soup_message_send_request (SoupMessage *req, SoupSocket *sock,
gboolean is_via_proxy)
{
- soup_message_prepare (req);
+ soup_message_cleanup_response (req);
soup_message_io_client (req, sock,
get_request_headers,
parse_response_headers,