]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/DevelLauncher.java
FIX: coverity resource leaks.
[gigi.git] / src / org / cacert / gigi / DevelLauncher.java
index 6a462f21ccae7a7a5a9d394049d6537dd960f442..5d1686728378524f39eb7ed416532a06e730642f 100644 (file)
@@ -32,7 +32,9 @@ public class DevelLauncher {
 
     public static void main(String[] args) throws Exception {
         Properties mainProps = new Properties();
-        mainProps.load(new FileInputStream("config/gigi.properties"));
+        try (FileInputStream inStream = new FileInputStream("config/gigi.properties")) {
+            mainProps.load(inStream);
+        }
         for (int i = 0; i < args.length; i++) {
             if (args[i].equals("--port")) {
                 mainProps.setProperty("port", args[i + 1]);