3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

t-runner: Fix mem leak with sim keys

Use l_settings_get_value instead of l_settings_get_string to
prevent unnecessary memory duplication.
This commit is contained in:
Tim Kourt 2019-10-22 16:13:11 -07:00 committed by Denis Kenzior
parent 1d29221ef0
commit 7dd32ac093

View File

@ -1961,8 +1961,8 @@ static void create_network_and_run_tests(void *data, void *user_data)
HW_CONFIG_SETUP_TMPFS_EXTRAS,
':');
sim_keys = l_settings_get_string(hw_settings, HW_CONFIG_GROUP_SETUP,
"sim_keys");
sim_keys = l_settings_get_value(hw_settings, HW_CONFIG_GROUP_SETUP,
"sim_keys");
if (sim_keys) {
if (!strcmp(sim_keys, "ofono")) {