Skip to content

Commit 687d7ca

Browse files
committed
JNI/JSSE: call wolfSSL_sk_X509_pop_free() instead of wolfSSL_sk_X509_free() in WolfSSLX509StoreCtx.getDerCerts()
1 parent ecd67a4 commit 687d7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/com_wolfssl_WolfSSLX509StoreCtx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ JNIEXPORT jobjectArray JNICALL Java_com_wolfssl_WolfSSLX509StoreCtx_X509_1STORE_
9797
(*jenv)->DeleteLocalRef(jenv, derArr);
9898
}
9999
}
100-
wolfSSL_sk_X509_free(sk);
100+
wolfSSL_sk_X509_pop_free(sk, NULL);
101101

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

0 commit comments

Comments
 (0)