Skip to content

Commit 332ea36

Browse files
authoredAug 31, 2016
Update UsingKnownHosts.java
Closing the Buffer Reader. Without that it might cause memory leaks.
1 parent 55d84a5 commit 332ea36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎examples/UsingKnownHosts.java

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public static void main(String[] args) throws IOException
6666
System.out.println(line);
6767
}
6868

69+
/* close the buffer reader */
70+
71+
br.close();
72+
6973
/* Close this session */
7074

7175
sess.close();

0 commit comments

Comments
 (0)
Please sign in to comment.