Fix memory leak in TLSX_KeyShare_Setup

This commit is contained in:
jordan
2023-05-08 10:46:33 -05:00
parent 62a4329f8e
commit 8c792b836c

View File

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