# HG changeset patch # User Mikael Hallendal # Date 1177757740 -7200 # Node ID 17c0fe07536c8ddeaf936d570d82beb7bf59a47f # Parent b67af7fc111fabf9f003fa3eb6d44df4fbef0985 Removed the freeing of connect_data from _lm_connection_failed_with_error As Owen points out in LM-97 the connect data will be freed by connection_do_close which is called just above the check/freeing was done so it will never trigger the free in this function anyway. diff -r b67af7fc111f -r 17c0fe07536c loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Tue Apr 24 19:42:00 2007 +0200 +++ b/loudmouth/lm-connection.c Sat Apr 28 12:55:40 2007 +0200 @@ -510,14 +510,6 @@ cb->user_data); _lm_utils_free_callback (cb); } - - /* If the user callback called connection_close(), this is - * already freed */ - if (connection->connect_data) { - freeaddrinfo (connect_data->resolved_addrs); - connection->connect_data = NULL; - g_free (connect_data); - } } else { /* try to connect to the next host */ connection_do_connect (connect_data);