From: Ankita Bajaj Date: Mon, 27 Aug 2018 07:31:13 +0000 (+0530) Subject: DPP: Fix a memory leak in L derivation X-Git-Tag: hostap_2_7~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a052f92eb3725fd9447834aa406e779814dd8cd;p=thirdparty%2Fhostap.git DPP: Fix a memory leak in L derivation The temporary EC_POINT 'sum' needs to be freed at the end of the function with the other OpenSSL allocations. Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp.c b/src/common/dpp.c index f48df43a7..099219c66 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -2602,6 +2602,7 @@ static int dpp_auth_derive_l_initiator(struct dpp_authentication *auth) ret = 0; fail: EC_POINT_clear_free(l); + EC_POINT_clear_free(sum); EC_KEY_free(bI); EC_KEY_free(BR); EC_KEY_free(PR);