FN_START;
GError *error = NULL;
guint owner_id;
- GDBusNodeInfo *node_info;
+ GDBusNodeInfo *node_info = NULL;
gchar *path;
owner_id = g_bus_own_name(G_BUS_TYPE_SYSTEM,
ERR("Failed to register: %s", error->message);
g_error_free(error);
g_free(path);
+ g_dbus_node_info_unref(node_info);
return FALSE;
}
g_free(path);
ERR("Failed to register: %s", error->message);
g_error_free(error);
g_free(path);
+ g_dbus_node_info_unref(node_info);
return FALSE;
}
g_free(path);
+ g_dbus_node_info_unref(node_info);
node_info = __bt_ag_create_method_node_info
(ag_agent_app_introspection_xml);
ERR("Failed to register: %s", error->message);
g_error_free(error);
g_free(path);
+ g_dbus_node_info_unref(node_info);
return FALSE;
}
g_free(path);
+ g_dbus_node_info_unref(node_info);
FN_END;
return TRUE;