#fixed code
                                public static String getVersion() {
        try {
            return CFLintMain.class.getPackage().getImplementationVersion();
        } catch (Exception e) {
            return "";
        }
    }
#vulnerable code 
                                public static String getVersion() {
        final InputStream is = Version.class
                .getResourceAsStream("/META-INF/maven/com.github.cflint/CFLint/pom.properties");
        try {
            final BufferedReader reader = new BufferedReader(new InputStreamReader(is));
            String line = reader.readLine();
            while (line != null && !line.startsWith("version=")) {
                line = reader.readLine();
            }
            if (line != null) {
                return line.replaceAll("version=", "");
            }
        } catch (final Exception e) {
            try {
                if (is != null) {
                    is.close();
                }
            } catch (final IOException e1) {
                e1.printStackTrace();
            }
        }
        return "";
    } 
                            #location 13 
                            #vulnerability type RESOURCE_LEAK