Support/Path: remove raw delete

llvm-svn: 216360
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index 4d17921..f633967 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -881,7 +881,8 @@
   }
 
   const size_t BufSize = 4096;
-  char *Buf = new char[BufSize];
+  std::vector<char> Buffer(BufSize);
+  char *Buf = Buffer.data();
   int BytesRead = 0, BytesWritten = 0;
   for (;;) {
     BytesRead = read(ReadFD, Buf, BufSize);
@@ -898,7 +899,6 @@
   }
   close(ReadFD);
   close(WriteFD);
-  delete[] Buf;
 
   if (BytesRead < 0 || BytesWritten < 0)
     return std::error_code(errno, std::generic_category());