Skip to content

Commit

Permalink
close scanner to avoid memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMl committed Jul 12, 2015
1 parent a0047b3 commit 9c592e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/util/File/InsertComment/CommentUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static boolean insertComment(File file, String option, String comment) {
}
writer.flush();
writer.close();
scan.close();
return true;

} catch (FileNotFoundException e) {
Expand Down

0 comments on commit 9c592e1

Please sign in to comment.