From: Lukasz Skalski Date: Tue, 10 Feb 2015 12:40:15 +0000 (+0000) Subject: [kdbus] Fix freeing allocated memory X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c14344cea6b009d09b2913d45369413cc16a0a3;p=platform%2Fupstream%2Fglib.git [kdbus] Fix freeing allocated memory --- diff --git a/gio/gkdbus.c b/gio/gkdbus.c index af6642b..4cccc4a 100644 --- a/gio/gkdbus.c +++ b/gio/gkdbus.c @@ -506,9 +506,10 @@ static gboolean g_kdbus_free_data (GKDBusWorker *kdbus, guint64 offset) { - struct kdbus_cmd_free cmd; + struct kdbus_cmd_free cmd = {}; int ret; + cmd.size = sizeof(cmd); cmd.offset = offset; cmd.flags = 0; @@ -946,9 +947,6 @@ _g_kdbus_GetListQueuedOwners (GKDBusWorker *worker, struct kdbus_cmd_list cmd = {}; struct kdbus_info *name_list, *kname; - /* TODO */ - g_error ("TODO"); - if (!g_dbus_is_name (name)) { g_set_error (error,