Skip to content

Commit 210a659

Browse files
committed
Free internCtx on NewGlobalRef failure
1 parent e155568 commit 210a659

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

native/com_wolfssl_WolfSSLSession.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4507,6 +4507,7 @@ JNIEXPORT void JNICALL Java_com_wolfssl_WolfSSLSession_setEccSignCtx
45074507
if (!myCtx->obj) {
45084508
throwWolfSSLException(jenv,
45094509
"Unable to store WolfSSLSession object as global reference");
4510+
XFREE(myCtx, NULL, DYNAMIC_TYPE_TMP_BUFFER);
45104511
return;
45114512
}
45124513

0 commit comments

Comments
 (0)