summaryrefslogtreecommitdiff
path: root/telepathy-glib/dbus-daemon.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-08-17 17:36:35 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-08-17 17:36:35 +0100
commit9eaa74ee2e065c2d44f144a3281d22fd1fd04f85 (patch)
tree16616ac05df350f577c0294a86ce771448cc40fb /telepathy-glib/dbus-daemon.c
parentdfa01dacdfb9dfc3276443e066fe941c479e99a7 (diff)
downloadtelepathy-glib-9eaa74ee2e065c2d44f144a3281d22fd1fd04f85.tar.gz
tp_dbus_daemon_watch_name_owner: don't leak the match rule
Diffstat (limited to 'telepathy-glib/dbus-daemon.c')
-rw-r--r--telepathy-glib/dbus-daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/telepathy-glib/dbus-daemon.c b/telepathy-glib/dbus-daemon.c
index 6621123b3..2d70aadfe 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");