Let functions stack be a singly linked list.
No memory leaks!

Again..