copy.c::copy_fd() - do not leak file descriptor on error return.