MFC r300643
Close from_fd if malloc() fails to avoid a file descriptor leak.
Reported by: Coverity CID: 1007203