Merge pull request #1791 from SparkiDev/keyshare_ecc_free

Fix memory leak in KeyShare using ECC and not fast math
pull/1801/head
toddouska 2018-08-29 16:11:32 -07:00 committed by GitHub
commit 818b0a3c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -6578,6 +6578,7 @@ static int TLSX_KeyShare_ProcessEcc(WOLFSSL* ssl, KeyShareEntry* keyShareEntry)
);
#endif
wc_ecc_free(ssl->peerEccKey);
XFREE(ssl->peerEccKey, ssl->heap, DYNAMIC_TYPE_ECC);
ssl->peerEccKey = NULL;
wc_ecc_free((ecc_key*)(keyShareEntry->key));