Skip to content

Commit

Permalink
Merge pull request #179 from cconlon/skpopfree
Browse files Browse the repository at this point in the history
JNI/JSSE: call wolfSSL_sk_X509_pop_free() in WolfSSLX509StoreCtx.getDerCerts()
  • Loading branch information
douzzer authored Mar 30, 2024
2 parents 8826635 + 687d7ca commit 9c63b7f
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 9c63b7f

Please sign in to comment.