8230856: Java_java_net_NetworkInterface_getByName0 on unix misses ReleaseStringUTFChars in early return

Reviewed-by: dfuchs, stuefe, vtewari
This commit is contained in:
Matthias Baesken 2019-09-11 16:13:05 +02:00
parent 2f496251ac
commit af94e6e681

View file

@ -239,6 +239,7 @@ JNIEXPORT jobject JNICALL Java_java_net_NetworkInterface_getByName0
ifs = enumInterfaces(env);
if (ifs == NULL) {
(*env)->ReleaseStringUTFChars(env, name, name_utf);
return NULL;
}