diff --git a/src/main/java/com/amazon/ion/impl/IonCursorBinary.java b/src/main/java/com/amazon/ion/impl/IonCursorBinary.java index 4e94b2f132..43e64748e3 100644 --- a/src/main/java/com/amazon/ion/impl/IonCursorBinary.java +++ b/src/main/java/com/amazon/ion/impl/IonCursorBinary.java @@ -1898,6 +1898,9 @@ public void close() { throwAsIonException(e); } } + buffer = null; + containerStack = null; + byteBuffer = null; } /* ---- End: version-agnostic parsing, utility, and public API methods ---- */