free the hostent.
authorDan Winship <danw@src.gnome.org>
Fri, 19 Sep 2003 16:54:11 +0000 (16:54 +0000)
committerDan Winship <danw@src.gnome.org>
Fri, 19 Sep 2003 16:54:11 +0000 (16:54 +0000)
commited203a51133ed83ba407b0d6b537e0559f86ae87
treefdfb8a2fc98b16129892246b62fe18957ce73408
parent0bb5e818f98c8e877692c1fb759276e89d2082bb
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.
16 files changed:
ChangeLog
libsoup/soup-address.c
libsoup/soup-connection-ntlm.c
libsoup/soup-gnutls.c
libsoup/soup-headers.c
libsoup/soup-message-client-io.c
libsoup/soup-message-io.c
libsoup/soup-message-private.h
libsoup/soup-message.c
libsoup/soup-message.h
libsoup/soup-server.c
libsoup/soup-session.c
libsoup/soup-session.h
libsoup/soup-types.h
tests/Makefile.am
tests/libsoup.supp [new file with mode: 0644]