Skip to content

Commit

Permalink
Sets binary reader buffers to null on close().
Browse files Browse the repository at this point in the history
  • Loading branch information
tgregg committed Jan 16, 2024
1 parent ebf8f4d commit 2ae8b74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/amazon/ion/impl/IonCursorBinary.java
Original file line number Diff line number Diff line change
Expand Up @@ -1898,6 +1898,9 @@ public void close() {
throwAsIonException(e);
}
}
buffer = null;
containerStack = null;
byteBuffer = null;
}

/* ---- End: version-agnostic parsing, utility, and public API methods ---- */
Expand Down

0 comments on commit 2ae8b74

Please sign in to comment.