OSDN Git Service

2013_0226 make sure to call close on the DataInputStream line 233
authorBen <s.murph82@gmail.com>
Tue, 26 Feb 2013 21:59:05 +0000 (16:59 -0500)
committerBen <s.murph82@gmail.com>
Tue, 26 Feb 2013 21:59:05 +0000 (16:59 -0500)
Superuser/src/com/koushikdutta/superuser/util/Settings.java

index 596c398..17ccc37 100755 (executable)
@@ -230,6 +230,7 @@ public class Settings {
         byte[] buffer = new byte[(int) file.length()];
         DataInputStream input = new DataInputStream(new FileInputStream(file));
         input.readFully(buffer);
+        input.close();
         return new String(buffer);
     }