Skip to content

Commit 3a9d4ac

Browse files
committed
JNI: free PKCS8_PRIV_KEY_INFO in X509CheckPrivateKey cleanup (F-1518)
1 parent 7199341 commit 3a9d4ac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

jni/jni_jce_wolfsslkeystore.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ JNIEXPORT jboolean JNICALL Java_com_wolfssl_provider_jce_WolfSSLKeyStore_X509Che
104104
}
105105
}
106106

107+
if (keyInfo != NULL) {
108+
wolfSSL_EVP_PKEY_free(keyInfo);
109+
}
107110
if (key != NULL) {
108111
wolfSSL_EVP_PKEY_free(key);
109112
}

0 commit comments

Comments
 (0)