mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8230856: Java_java_net_NetworkInterface_getByName0 on unix misses ReleaseStringUTFChars in early return
Reviewed-by: dfuchs, stuefe, vtewari
This commit is contained in:
parent
2f496251ac
commit
af94e6e681
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue