mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +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:
parent
1d29221ef0
commit
7dd32ac093
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user