Fixed a leak in extracting the domain name from the jid.
authorSenko Rasic <senko.rasic@collabora.co.uk>
Tue, 25 Sep 2007 11:08:29 +0200
changeset 281 4e0421c44a73
parent 280 f1bfa3d3ad1c
child 282 0bd1892a18d3
Fixed a leak in extracting the domain name from the jid.
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;
 	}