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.
--- 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);