diff options
author | Zhenhua Zhang <zhenhua.zhang@intel.com> | 2010-07-26 09:11:36 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-07-26 11:16:21 +0200 |
commit | 14dea5e18d8a9d06424b74fa30f69316c965b0eb (patch) | |
tree | 9084c803b3f17ac4476efcf81efd98292541e2ed /gdbus | |
parent | f0aaa277e1712359701b158e5c43f7cc5c2d46d5 (diff) | |
download | connman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.tar.gz connman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.tar.bz2 connman-14dea5e18d8a9d06424b74fa30f69316c965b0eb.zip |
Free service data in service_reply
Avoid the memory leak of server_data.
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/watch.c | 2 |
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); |