Motivation: An IOException may be thrown from FileChannel.read, and cause the fd leak. Modification: Close the file when IOException occurs. Result: Avoid fd leak.
Motivation: An IOException may be thrown from FileChannel.read, and cause the fd leak. Modification: Close the file when IOException occurs. Result: Avoid fd leak.