Merge pull request #6388 from philljj/zd16114

Fix memory leak in TLSX_KeyShare_Setup
This commit is contained in:
JacobBarthelmeh
2023-05-08 14:47:00 -06:00
committed by GitHub

View File

@@ -9249,6 +9249,7 @@ int TLSX_KeyShare_Setup(WOLFSSL *ssl, KeyShareEntry* clientKSE)
&& ret != WC_PENDING_E && ret != WC_PENDING_E
#endif #endif
) { ) {
TLSX_KeyShare_FreeAll(list, ssl->heap);
return ret; return ret;
} }
} }