1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Fix memory leak in demangling of string literals.

llvm-svn: 339909
This commit is contained in:
Zachary Turner 2018-08-16 17:48:32 +00:00
parent 0ffcfd97af
commit 5c97e44a05

View File

@ -1762,6 +1762,7 @@ Name *Demangler::demangleStringLiteral(StringView &MangledName) {
OS << '\0';
ResultBuffer = OS.getBuffer();
Result->Str = copyString(ResultBuffer);
std::free(ResultBuffer);
return Result;
StringLiteralError: