#vulnerable code 
                                public IonValue singleValue(String ionText)
    {
        Iterator<IonValue> it = iterate(ionText);
        return singleValue(it);
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public IonValue singleValue(String ionText)
    {
        CloseableIterator<IonValue> it = iterate(ionText);
        return singleValue(it);
    }