Skip to content

Commit 9c63b7f

Browse files
authored
Merge pull request #179 from cconlon/skpopfree
JNI/JSSE: call wolfSSL_sk_X509_pop_free() in WolfSSLX509StoreCtx.getDerCerts()
2 parents 8826635 + 687d7ca commit 9c63b7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

native/com_wolfssl_WolfSSLX509StoreCtx.c

Lines changed: 1 addition & 1 deletion
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)