summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-07-26 09:11:36 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2010-07-26 11:16:21 +0200
commit14dea5e18d8a9d06424b74fa30f69316c965b0eb (patch)
tree9084c803b3f17ac4476efcf81efd98292541e2ed
parentf0aaa277e1712359701b158e5c43f7cc5c2d46d5 (diff)
downloadconnman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.tar.gz
connman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.tar.bz2
connman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.zip
Free service data in service_reply
Avoid the memory leak of server_data.
-rw-r--r--gdbus/watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbus/watch.c b/gdbus/watch.c
index 1d479fac..29f23e2d 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);