[libcxx] Avoid double frees of file descriptors in the fallback ifstream/ofstream...
authorMartin Storsjö <martin@martin.st>
Mon, 2 Nov 2020 08:19:42 +0000 (10:19 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 3 Nov 2020 07:32:52 +0000 (09:32 +0200)
commit08b4cc5e0d2625e85ed4af9aad17ccc0876e3bd3
treec0db5c3f181fb20d2c0a593b9e712e1f446677e4
parent11987248c8aef5ba0dfeb5595df93616ac3d3c63
[libcxx] Avoid double frees of file descriptors in the fallback ifstream/ofstream codepath

So far, most actual uses of libc++ std::filesystem probably use
the sendfile or fcopyfile implementations.

Differential Revision: https://reviews.llvm.org/D90601
libcxx/src/filesystem/operations.cpp