Bug fixing: net-config crash after system reboot 49/14549/1
authorWu Jiangbo <jiangbox.wu@intel.com>
Tue, 5 Nov 2013 06:24:58 +0000 (14:24 +0800)
committerZhang zhengguang <zhengguang.zhang@intel.com>
Tue, 7 Jan 2014 08:43:02 +0000 (16:43 +0800)
commitec1a3b0021436e4848b983f11a47106b230acd23
tree3410196cf852076433816c89e32b6fbe24f19eb4
parent21150471e3c11f0816e034404567b1f016924737
Bug fixing: net-config crash after system reboot

Root cause:
When device powers off, g_slist_free_full() uses a NULL pointer
as destroy function, which leads to net-config crash.

Solution:
Use function g_slist_free() to replace g_slist_free_full()
to free the list when net-config exits.

Change-Id: Ia9d5d6920b537fe8337a319fbd048167d244284e
src/wifi-state.c