We opened a file descriptor (fd) to the given oid. But we want exactly zero or one file descriptors to each object in the system, and we've just discovered that we already had a descriptor open in the cache (*outfd), so we have to close fd. Otherwise we leak fd.
The close needs to stay.