mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-18 09:10:38 +01:00
owe: Fix potential memory leak
This commit is contained in:
parent
96aa658375
commit
b3799a9f8d
@ -159,6 +159,7 @@ static bool owe_compute_keys(struct owe_sm *owe, const void *public_key,
|
|||||||
|
|
||||||
if (!l_ecdh_generate_shared_secret(owe->private, other_public,
|
if (!l_ecdh_generate_shared_secret(owe->private, other_public,
|
||||||
&shared_secret)) {
|
&shared_secret)) {
|
||||||
|
l_ecc_point_free(other_public);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user