From b6d7b0ff086f1fca43b8c6acede7a0500d3ccc97 Mon Sep 17 00:00:00 2001 From: Alvin Philips Date: Sun, 31 Oct 2021 22:30:51 +0530 Subject: [PATCH] Fixed memory bug --- operations_on_datastructures/circular_linked_list.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/operations_on_datastructures/circular_linked_list.cpp b/operations_on_datastructures/circular_linked_list.cpp index dd6c46523..7aa04b062 100644 --- a/operations_on_datastructures/circular_linked_list.cpp +++ b/operations_on_datastructures/circular_linked_list.cpp @@ -252,7 +252,6 @@ void test4() { a.insert(start); assert(a.values(start) == res); a.print(start); - delete (start); ///< Free memory of the Node std::cout << "TEST PASSED!\n\n"; }