commit b3799a9f8d5237a724437d8e523101bcf7e4e818
parent 96aa65837514662224c0f556bd4ffb2093a92976
Author: Denis Kenzior <denkenz@gmail.com>
Date: Wed, 16 Oct 2019 18:14:17 -0500
owe: Fix potential memory leak
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/owe.c b/src/owe.c
@@ -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,
&shared_secret)) {
+ l_ecc_point_free(other_public);
return false;
}