projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0aaa27
)
Free service data in service_reply
author
Zhenhua Zhang
<zhenhua.zhang@intel.com>
Mon, 26 Jul 2010 01:11:36 +0000
(09:11 +0800)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 26 Jul 2010 09:16:21 +0000
(11:16 +0200)
Avoid the memory leak of server_data.
gdbus/watch.c
patch
|
blob
|
history
diff --git
a/gdbus/watch.c
b/gdbus/watch.c
index
1d479fa
..
29f23e2
100644
(file)
--- 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);