This reverts commit r216360.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216428
91177308-0d34-0410-b5e6-
96231b3b80d8
}
const size_t BufSize = 4096;
- std::vector<char> Buffer(BufSize);
- char *Buf = Buffer.data();
+ char *Buf = new char[BufSize];
int BytesRead = 0, BytesWritten = 0;
for (;;) {
BytesRead = read(ReadFD, Buf, BufSize);
}
close(ReadFD);
close(WriteFD);
+ delete[] Buf;
if (BytesRead < 0 || BytesWritten < 0)
return std::error_code(errno, std::generic_category());