From ea7baf8d9fae7623a254a20c1742d09ebe52597d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 23 Jan 2005 03:19:13 +0000 Subject: [PATCH] Fix a bug in previous checkin llvm-svn: 19769 --- lib/Support/FileUtilities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index 79cca8fda1d..8ce9602872a 100644 --- a/lib/Support/FileUtilities.cpp +++ b/lib/Support/FileUtilities.cpp @@ -239,9 +239,9 @@ int llvm::DiffFilesWithTolerance(const std::string &FileA, } if (OrigFile1Start != File1Start) - delete[] File1Start; + delete[] File1Start-1; // Back up past null byte if (OrigFile2Start != File2Start) - delete[] File2Start; + delete[] File2Start-1; // Back up past null byte return CompareFailed; } catch (const std::string &Msg) { if (Error) *Error = Msg;