Skip to content

Commit

Permalink
JNI/JSSE: call wolfSSL_sk_X509_pop_free() instead of wolfSSL_sk_X509_…
Browse files Browse the repository at this point in the history
…free() in WolfSSLX509StoreCtx.getDerCerts()
  • Loading branch information
cconlon committed Mar 18, 2024
1 parent ecd67a4 commit 687d7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/com_wolfssl_WolfSSLX509StoreCtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ JNIEXPORT jobjectArray JNICALL Java_com_wolfssl_WolfSSLX509StoreCtx_X509_1STORE_
(*jenv)->DeleteLocalRef(jenv, derArr);
}
}
wolfSSL_sk_X509_free(sk);
wolfSSL_sk_X509_pop_free(sk, NULL);

(*jenv)->DeleteLocalRef(jenv, arrType);

Expand Down

0 comments on commit 687d7ca

Please sign in to comment.