-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove memory leak in reverse_a_linked_list.cpp
#2439
fix: remove memory leak in reverse_a_linked_list.cpp
#2439
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Thanks! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that one comment, I defer my review to @Panquesito7 - I haven't run this algorithm locally but seems alright.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 🚀
@Panquesito7 does this mean that this PR will be merged? |
Description of Change
In order to remove a memory leak in
reverse_a_linked_list.cpp
I have added a destructor to the classlist
. Furthermore I made some minor modifications, namely:const
,new
operator.Checklist
Notes:
Removes a memory leak in
reverse_a_linked_list.cpp
.