mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
network: free psk on error
This commit is contained in:
parent
0854592cc6
commit
6930987aa6
@ -399,6 +399,8 @@ static int network_load_psk(struct network *network, bool need_passphrase)
|
||||
return 0;
|
||||
}
|
||||
|
||||
l_free(psk);
|
||||
|
||||
path = storage_get_network_file_path(security, ssid);
|
||||
l_error("%s: invalid PreSharedKey format", path);
|
||||
l_free(path);
|
||||
|
Loading…
Reference in New Issue
Block a user