3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

plugins: fix memory leak

This commit is contained in:
Tim Kourt 2018-01-10 12:13:35 -08:00 committed by Denis Kenzior
parent b1745aca79
commit 71669c4aec

View File

@ -361,9 +361,11 @@ try_aka:
sim->aka_supported = 1;
}
end:
l_settings_free(key_settings);
if (!sim->sim_supported && !sim->aka_supported) {
l_debug("error parsing config file, values missing");
l_settings_free(key_settings);
return -EINVAL;
}