#vulnerable code 
                                public static void main(String[] args) {
        List<FlashedToken> flashedTokens = generateTokens(10, AppName.BLYNK, 1);
        DBManager dbManager = new DBManager("db-test.properties", new BlockingIOProcessor(1, 100, null));
        dbManager.insertFlashedTokens(flashedTokens);
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static void main(String[] args) throws Exception{
        List<FlashedToken> flashedTokens = generateTokens(100, "Grow", 2);
        DBManager dbManager = new DBManager("db-test.properties", new BlockingIOProcessor(1, 100, null));

        dbManager.insertFlashedTokens(flashedTokens);

        for (FlashedToken token : flashedTokens) {
            Path path = Paths.get("/home/doom369/Downloads/grow",  token.token + "_" + token.deviceId + ".jpg");
            generateQR(token.token, path);
        }
    }