TCO for list_free()
Fixed buffer_new_file() memleak