diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-12-04 22:09:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-12-04 22:09:37 +0000 |
commit | 271b7af521b784ec505a37a29ac36ec596954a08 (patch) | |
tree | f94ffb8869589947e3329ee6abb0bd227a68586f | |
parent | a317e90f4c4aeb871359c3b8c3420f1ddab97d5c (diff) |
Use 'free' to release PerIDCache since it was allocated using calloc().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60556 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 63f2722e99..85d009b4cb 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -244,7 +244,7 @@ PTHManager::PTHManager(const llvm::MemoryBuffer* buf, void* fileLookup, PTHManager::~PTHManager() { delete Buf; delete (PTHFileLookup*) FileLookup; - delete [] (IdentifierInfo**) PerIDCache; + assert(PerIDCache); free(PerIDCache); } PTHManager* PTHManager::Create(const std::string& file, Preprocessor& PP) { |