From b351c33ad381d95a658b2153c6f2b594170237ce Mon Sep 17 00:00:00 2001 From: EAlexa Date: Tue, 7 Apr 2020 16:48:57 +0200 Subject: [PATCH] close Reader --- DataStructures/Lists/SinglyLinkedList.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/Lists/SinglyLinkedList.java b/DataStructures/Lists/SinglyLinkedList.java index 1196851a..5fda2f5f 100644 --- a/DataStructures/Lists/SinglyLinkedList.java +++ b/DataStructures/Lists/SinglyLinkedList.java @@ -120,9 +120,9 @@ public class SinglyLinkedList { cur = cur.next; } - Node destroy = cur.next; + //Node destroy = cur.next; cur.next = cur.next.next; - destroy = null; // clear to let GC do its work + //destroy = null; // clear to let GC do its work size--; }