Use stack_pop() in stack_destroy() to remove stack from memory