projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
278dba2
)
gdbus: Fix memory leak
author
Anderson Lizardo
<anderson.lizardo@openbossa.org>
Mon, 10 Feb 2014 17:14:56 +0000
(13:14 -0400)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 19 Feb 2014 07:13:53 +0000
(23:13 -0800)
data->conn and data->path must be destroyed before freeing "data".
gdbus/object.c
patch
|
blob
|
history
diff --git
a/gdbus/object.c
b/gdbus/object.c
index b248cbbc7095cb926485ee4122f96eb57a48a292..13cf9a956aa3d3525ee61e9b43e9ba7b0ba3d807 100644
(file)
--- a/
gdbus/object.c
+++ b/
gdbus/object.c
@@
-1253,6
+1253,8
@@
static struct generic_data *object_path_ref(DBusConnection *connection,
if (!dbus_connection_register_object_path(connection, path,
&generic_table, data)) {
+ dbus_connection_unref(data->conn);
+ g_free(data->path);
g_free(data->introspect);
g_free(data);
return NULL;