mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6632696: Writing to closed output files (writeBytes) leaks native memory (unix)
Reviewed-by: alanb, iris
This commit is contained in:
parent
4d5b998028
commit
a686efe6ac
1 changed files with 5 additions and 5 deletions
|
@ -173,7 +173,7 @@ writeBytes(JNIEnv *env, jobject this, jbyteArray bytes,
|
|||
fd = GET_FD(this, fid);
|
||||
if (fd == -1) {
|
||||
JNU_ThrowIOException(env, "Stream Closed");
|
||||
return;
|
||||
break;
|
||||
}
|
||||
n = IO_Write(fd, buf+off, len);
|
||||
if (n == JVM_IO_ERR) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue