mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 15:20:42 +01:00
plugins: fix memory leak
This commit is contained in:
parent
b1745aca79
commit
71669c4aec
@ -361,9 +361,11 @@ try_aka:
|
|||||||
sim->aka_supported = 1;
|
sim->aka_supported = 1;
|
||||||
}
|
}
|
||||||
end:
|
end:
|
||||||
|
l_settings_free(key_settings);
|
||||||
|
|
||||||
if (!sim->sim_supported && !sim->aka_supported) {
|
if (!sim->sim_supported && !sim->aka_supported) {
|
||||||
l_debug("error parsing config file, values missing");
|
l_debug("error parsing config file, values missing");
|
||||||
l_settings_free(key_settings);
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -371,7 +373,7 @@ end:
|
|||||||
|
|
||||||
iwd_sim_auth_set_nai(sim->auth, sim->identity);
|
iwd_sim_auth_set_nai(sim->auth, sim->identity);
|
||||||
iwd_sim_auth_set_capabilities(sim->auth, sim->sim_supported,
|
iwd_sim_auth_set_capabilities(sim->auth, sim->sim_supported,
|
||||||
sim->aka_supported);
|
sim->aka_supported);
|
||||||
|
|
||||||
iwd_sim_auth_register(sim->auth);
|
iwd_sim_auth_register(sim->auth);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user