# HG changeset patch # User Senko Rasic # Date 1190711309 -7200 # Node ID 4e0421c44a734c5bbc66095571e6863220cd85d1 # Parent f1bfa3d3ad1c36851af69371717c2aff710c977e Fixed a leak in extracting the domain name from the jid. diff -r f1bfa3d3ad1c -r 4e0421c44a73 loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Wed Sep 19 16:18:42 2007 +0200 +++ b/loudmouth/lm-connection.c Tue Sep 25 11:08:29 2007 +0200 @@ -421,7 +421,7 @@ static gboolean connection_do_open (LmConnection *connection, GError **error) { - gchar *domain; + gchar *domain = NULL; if (lm_connection_is_open (connection)) { g_set_error (error, @@ -461,6 +461,8 @@ connection->proxy, error); + g_free (domain); + if (!connection->socket) { return FALSE; }