mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8230861: missing ReleaseStringUTFChars in Java_sun_security_pkcs11_wrapper_PKCS11_connect
Reviewed-by: alanb, stuefe
This commit is contained in:
parent
988ac4fec0
commit
2f496251ac
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ JNIEXPORT void JNICALL Java_sun_security_pkcs11_wrapper_PKCS11_connect
|
|||
exceptionMessage = (char *) malloc(sizeof(char) * (strlen(systemErrorMessage) + strlen(libraryNameStr) + 1));
|
||||
if (exceptionMessage == NULL) {
|
||||
throwOutOfMemoryError(env, 0);
|
||||
(*env)->ReleaseStringUTFChars(env, jPkcs11ModulePath, libraryNameStr);
|
||||
return;
|
||||
}
|
||||
strcpy(exceptionMessage, systemErrorMessage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue