summaryrefslogtreecommitdiff
path: root/tests/libsoup.supp
Commit message (Collapse)AuthorAgeFilesLines
* tests: plug leaks, update libsoup.suppDan Winship2015-03-021-6/+82
|
* tests: fix memory leaksDan Winship2012-12-111-0/+13
|
* valgrindageDan Winship2012-08-111-1/+60
|
* valgrind run...Dan Winship2012-02-121-6/+75
|
* libsoup.supp: belatedly commit some fixesDan Winship2011-09-291-1/+8
|
* tests: fix a few leaks, update valgrind suppressions fileDan Winship2011-09-171-1/+126
|
* Fix memory leaks, update libsoup.suppDan Winship2011-04-071-14/+62
|
* Try all IP addrs associated with a hostname if the first failsDan Winship2010-08-141-1/+12
| | | | | | | | | | | | | | | | | | | | | | | Make SoupAddress keep track of multiple IP addresses and implement GSocketConnectable, and make SoupSocket use GSocketClient (and thus GSocketAddressEnumerator) to connect, so that it tries all addresses associated with the SoupAddress. In particular, this fixes the bug where if a host has both IPv4 and IPv6 addresses, and glibc thinks you have IPv6 connectivity, but you don't really, that libsoup can't connect to that host. (Using GSocketClient rather than using GSocketAddressEnumerator directly is a bit heavyweight for SoupSocket, since we don't actually want to have a GSocket or GSocketConnection. But eventually, we will be porting SoupSocket to use GSocket, and this code is a stepping stone to that. Also, letting GSocketClient do the looping over the addresses simplifies SoupSocket.) (This change also silently breaks connection timeouts unless you have the very latest git glib.) https://bugzilla.gnome.org/show_bug.cgi?id=526321
* Allow calling soup_test_server_new() multiple times in test programsDan Winship2010-06-111-0/+12
|
* valgrind suppressions file updatesDan Winship2010-05-161-1/+7
|
* Fix leaks found by valgrindDan Winship2010-03-131-1121/+76
| | | | | | Also, simply the suppressions file by using the "..." syntax, which I think didn't exist (or at least wasn't documented) when I first created it.
* Fix leaks in test programs, update libsoup.suppDan Winship2009-09-111-16/+360
|
* don't leak the header stringDan Winship2008-11-031-867/+541
| | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-message-headers.c (set_content_foo): don't leak the header string * libsoup/soup-multipart.c (generate_boundary): avoid a (harmless) valgrind warning * libsoup/soup-proxy-resolver-static.c (get_proxy_sync): don't leak the address on error * libsoup/soup-session-sync.c (wait_for_connection): don't leak proxy_addr * tests/misc-test.c: don't leak the SoupMessage signal ids * tests/range-test.c (main): don't leak base_uri * tests/libsoup.supp: update this using lots and lots of wildcards svn path=/trunk/; revision=1197
* soup_value_hash_insert_value() copies the value, so we have toDan Winship2008-09-301-17/+116
| | | | | | | | | | | | | | * libsoup/soup-xmlrpc.c (parse_value): soup_value_hash_insert_value() copies the value, so we have to g_value_unset() our copy. * tests/chunk-test.c: * tests/misc-test.c: * tests/ntlm-test.c: fix leaks * tests/libsoup.supp: update svn path=/trunk/; revision=1169
* fix mutex use to avoid a race conditionDan Winship2008-01-271-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-dns.c (resolver_thread): fix mutex use to avoid a race condition * libsoup/soup-xmlrpc.c (soup_xmlrpc_build_faultv): (soup_xmlrpc_set_response, soup_xmlrpc_set_fault): (soup_xmlrpc_parse_method_call): Fix misc server-side stuff (soup_xmlrpc_parse_method_response): Fix fault parsing * libsoup/soup-xmlrpc.h (SoupXMLRPCFault): add semi-standard fault codes from http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php * tests/xmlrpc-server.php (sum): return a <fault> if the arguments are wrong (so that xmlrpc-test can test that case). (dateChange): change to take two parameters, a date and a struct, instead of putting the date in the struct, since we weren't previously testing multiple parameter handling. * tests/xmlrpc-test.c (main): Add a -u flag to specify an alternate URL. (do_xmlrpc): Remove level 3 debug output, which is now redundant with the SoupLogger stuff. (test_dateChange): update for dateChange prototype change (test_fault_malformed, test_fault_method, test_fault_args): test handling of faults * tests/xmlrpc-server-test.c: Test the server-side XML-RPC API (by implementing the same methods as xmlrpc-server.php and then using xmlrpc-test) svn path=/trunk/; revision=1056
* fix to not sometimes read beyond the end of the string.Dan Winship2008-01-271-153/+283
| | | | | | | | | | | | | | | | | | | | * libsoup/soup-headers.c (soup_header_parse_quality_list): fix to not sometimes read beyond the end of the string. * libsoup/soup-message-body.c (soup_message_body_append): When appending a 0-length SOUP_MEMORY_TAKE buffer, we need to free the passed-in buffer rather than just ignoring it. * libsoup/soup-server.c (got_headers): fix leak when decoding path * libsoup/soup-session.c (finalize): free ntlm_manager * tests/libsoup.supp: update for libsoup 2.4, glib 2.14, etc * tests/header-parsing.c (do_qvalue_tests): * tests/uri-parsing.c (main): more cleanup svn path=/trunk/; revision=1055
* don't leak the SoupAddress.Dan Winship2007-11-211-23/+859
| | | | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-connection.c (soup_connection_connect_async): don't leak the SoupAddress. * libsoup/soup-dns.c (soup_dns_lookup_resolve_async): fix a leak when re-looking up an address * libsoup/soup-session.c (soup_session_abort): close all connections in addition to cancelling messages (needed because connections currently end up holding a ref on their session, preventing them from being destroyed). * tests/auth-test.c: * tests/ntlm-test.c: * tests/proxy-test.c: * tests/pull-api.c: * tests/ssl-test.c: * tests/xmlrpc-test.c: clean up more memory on exit, to help find leaks in the library * tests/libsoup.supp: add a zillion new suppressions so we can use --leak-resolution=med svn path=/trunk/; revision=953
* free proxy-related stuffDan Winship2007-10-281-5/+111
| | | | | | | | | | | * libsoup/soup-session.c (finalize): free proxy-related stuff * libsoup/soup-session-async.c (idle_run_queue): clean up the weak pointer * tests/*.c: fix leaks svn path=/trunk/; revision=946
* free the hostent.Dan Winship2003-09-191-0/+14
* 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.