git: openjdk/mobile: 8232003: (fs) Files.write can leak file descriptor in the exception case

duke duke at openjdk.java.net
Wed Oct 9 11:55:51 UTC 2019


Changeset: dcc9cc3f
Author:    Severin Gehwolf <sgehwolf at openjdk.org>
Date:      2019-10-08 15:30:46 +0000
URL:       https://git.openjdk.java.net/mobile/commit/dcc9cc3f

8232003: (fs) Files.write can leak file descriptor in the exception case

Be sure to close the leaked OutputStream in all cases

Reviewed-by: alanb, bpb, clanger

! src/java.base/share/classes/java/nio/file/Files.java




More information about the mobile-changes mailing list