#vulnerable code 
                                public boolean createQueue(String queueName, long maxSize, int latelySecond) {
        try {
            InchainFQueue queue = new InchainFQueue(queueName, maxSize);
            QueueManager.initQueue(queueName, queue, latelySecond);
            return true;
        } catch (Exception e) {
            Log.error("", e);
            return false;
        }
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public boolean createQueue(String queueName, long maxSize, int latelySecond) {
        try {
            NulsFQueue queue = new NulsFQueue(queueName, maxSize);
            QueueManager.initQueue(queueName, queue, latelySecond);
            return true;
        } catch (Exception e) {
            Log.error("", e);
            return false;
        }
    }