Skip to content

Commit 9768493

Browse files
committed
fix #177 existingObject leaked
1 parent 353be9d commit 9768493

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/jsoniter/JsonIteratorPool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static JsonIterator borrowJsonIterator() {
2222

2323
public static void returnJsonIterator(JsonIterator iter) {
2424
iter.configCache = null;
25+
iter.existingObject = null;
2526
if (slot1.get() == null) {
2627
slot1.set(iter);
2728
return;

0 commit comments

Comments
 (0)