equal
deleted
inserted
replaced
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); |