From 5a052f92eb3725fd9447834aa406e779814dd8cd Mon Sep 17 00:00:00 2001 From: Ankita Bajaj Date: Mon, 27 Aug 2018 13:01:13 +0530 Subject: [PATCH] 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 --- src/common/dpp.c | 1 + 1 file changed, 1 insertion(+) 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);