linked_list: add a free method

Valgrind "definitely lost" goes from 112 to 64 bytes with this. Also
those 64 bytes seem to be solely from the stack, so I will look there to
"definitely [lose]" 0 bytes.
stack: stack_free added to free the data from the stack