src/jdk.crypto.cryptoki/unix/native/libj2pkcs11/p11_md.c
changeset 58097 fa0514bdc09b
parent 47216 71c04702a3d5
equal deleted inserted replaced
58096:0d97bf7cf8a4 58097:fa0514bdc09b
   107     if (hModule == NULL) {
   107     if (hModule == NULL) {
   108         systemErrorMessage = dlerror();
   108         systemErrorMessage = dlerror();
   109         exceptionMessage = (char *) malloc(sizeof(char) * (strlen(systemErrorMessage) + strlen(libraryNameStr) + 1));
   109         exceptionMessage = (char *) malloc(sizeof(char) * (strlen(systemErrorMessage) + strlen(libraryNameStr) + 1));
   110         if (exceptionMessage == NULL) {
   110         if (exceptionMessage == NULL) {
   111             throwOutOfMemoryError(env, 0);
   111             throwOutOfMemoryError(env, 0);
       
   112             (*env)->ReleaseStringUTFChars(env, jPkcs11ModulePath, libraryNameStr);
   112             return;
   113             return;
   113         }
   114         }
   114         strcpy(exceptionMessage, systemErrorMessage);
   115         strcpy(exceptionMessage, systemErrorMessage);
   115         strcat(exceptionMessage, libraryNameStr);
   116         strcat(exceptionMessage, libraryNameStr);
   116         throwIOException(env, exceptionMessage);
   117         throwIOException(env, exceptionMessage);