summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-07-26 01:11:36 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2010-07-26 09:16:21 (GMT)
commit14dea5e18d8a9d06424b74fa30f69316c965b0eb (patch)
tree9084c803b3f17ac4476efcf81efd98292541e2ed /gdbus
parentf0aaa277e1712359701b158e5c43f7cc5c2d46d5 (diff)
downloadconnman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.zip
connman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.tar.gz
connman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.tar.bz2
Free service data in service_reply
Avoid the memory leak of server_data.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbus/watch.c b/gdbus/watch.c
index 1d479fa..29f23e2 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -533,7 +533,7 @@ static void check_service(DBusConnection *connection, const char *name,
goto done;
}
- dbus_pending_call_set_notify(call, service_reply, data, NULL);
+ dbus_pending_call_set_notify(call, service_reply, data, g_free);
dbus_pending_call_unref(call);