data->conn and data->path must be destroyed before freeing "data". --- gdbus/object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdbus/object.c b/gdbus/object.c index b248cbb..13cf9a9 100644 --- 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; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html