[telepathy-glib/master] tp_dbus_daemon_watch_name_owner: don't leak the match rule
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Aug 17 09:36:35 PDT 2009
---
telepathy-glib/dbus-daemon.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/dbus-daemon.c b/telepathy-glib/dbus-daemon.c
index 6621123..2d70aad 100644
--- a/telepathy-glib/dbus-daemon.c
+++ b/telepathy-glib/dbus-daemon.c
@@ -499,6 +499,7 @@ tp_dbus_daemon_watch_name_owner (TpDBusDaemon *self,
match_rule = _tp_dbus_daemon_get_noc_rule (name);
DEBUG ("Adding match rule %s", match_rule);
dbus_bus_add_match (self->priv->libdbus, match_rule, NULL);
+ g_free (match_rule);
message = dbus_message_new_method_call (DBUS_SERVICE_DBUS,
DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS, "GetNameOwner");
--
1.5.6.5
More information about the telepathy-commits
mailing list