We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 504d499 commit e10a7d8Copy full SHA for e10a7d8
1 file changed
jni/jni_ecc.c
@@ -1611,6 +1611,7 @@ JNIEXPORT jobjectArray JNICALL Java_com_wolfssl_wolfcrypt_Ecc_wc_1ecc_1get_1curv
1611
curveIdx = wc_ecc_get_curve_idx_from_name(name);
1612
if (curveIdx < 0) {
1613
LogStr("wc_ecc_get_curve_idx_from_name failed, idx: %d\n", curveIdx);
1614
+ (*env)->ReleaseStringUTFChars(env, curveName, name);
1615
throwWolfCryptExceptionFromError(env, curveIdx);
1616
return NULL;
1617
}
0 commit comments