Skip to content

Commit 8c792b8

Browse files
committed
Fix memory leak in TLSX_KeyShare_Setup
1 parent 62a4329 commit 8c792b8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tls.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9249,6 +9249,7 @@ int TLSX_KeyShare_Setup(WOLFSSL *ssl, KeyShareEntry* clientKSE)
92499249
&& ret != WC_PENDING_E
92509250
#endif
92519251
) {
9252+
TLSX_KeyShare_FreeAll(list, ssl->heap);
92529253
return ret;
92539254
}
92549255
}

0 commit comments

Comments
 (0)