#vulnerable code 
                                public static void copy(File source, OutputStream dest) throws IOException {
	InputStream fis = new FileInputStream(source);
        copy(fis, dest);
	fis.close();
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static void copy(File source, OutputStream dest) throws IOException {
		InputStream fis = null;
        try {
			fis = new FileInputStream(source);
			copy(fis, dest);
        } finally {
            if (fis != null) try { fis.close(); } catch (Exception e) {}
        }
    }