I have a linked list contains 3 nodes like the image shown:
There is a head pointe
Instead of free, C++ uses delete function.
free
Check the link to have deep knowledge about all kind of operations(including recursive or iterative delete) on linked lists.