Add the mistakenly omitted stack_free function.