#vulnerable code 
                                public static java.util.Properties getProperties() {
        if (properties == null) {
            properties = new java.util.Properties();
            try {
                properties.load(new FileInputStream("searchcode.properties"));
            } catch (IOException e) {
                // TODO Use second 'stdout' logger here, because ctor LoggerWrapper call this method
                Singleton.getLogger().severe("Unable to load 'searchcode.properties' file. Will resort to defaults for all values.");
            }
        }

        return properties;
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static java.util.Properties getProperties() {
        if (properties == null) {
            properties = new java.util.Properties();
            FileInputStream fileInputStream = null;
            try {
                fileInputStream = new FileInputStream("searchcode.properties");
                properties.load(fileInputStream);
            } catch (IOException e) {
                // TODO Use second 'stdout' logger here, because ctor LoggerWrapper call this method
                Singleton.getLogger().severe("Unable to load 'searchcode.properties' file. Will resort to defaults for all values.");
            }
            finally {
                IOUtils.closeQuietly(fileInputStream);
            }
        }

        return properties;
    }