r253418 - Try to fix leak in CXStringSet from r252853
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 17 17:06:40 PST 2015
Author: rnk
Date: Tue Nov 17 19:06:39 2015
New Revision: 253418
URL: http://llvm.org/viewvc/llvm-project?rev=253418&view=rev
Log:
Try to fix leak in CXStringSet from r252853
Modified:
cfe/trunk/tools/libclang/CXString.cpp
Modified: cfe/trunk/tools/libclang/CXString.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXString.cpp?rev=253418&r1=253417&r2=253418&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXString.cpp (original)
+++ cfe/trunk/tools/libclang/CXString.cpp Tue Nov 17 19:06:39 2015
@@ -186,6 +186,8 @@ void clang_disposeString(CXString string
}
void clang_disposeStringSet(CXStringSet *set) {
+ for (unsigned SI = 0, SE = set->Count; SI < SE; ++SI)
+ clang_disposeString(set->Strings[SI]);
delete[] set->Strings;
delete set;
}
More information about the cfe-commits
mailing list