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:
parent
0ffcfd97af
commit
5c97e44a05
@ -1762,6 +1762,7 @@ Name *Demangler::demangleStringLiteral(StringView &MangledName) {
|
||||
OS << '\0';
|
||||
ResultBuffer = OS.getBuffer();
|
||||
Result->Str = copyString(ResultBuffer);
|
||||
std::free(ResultBuffer);
|
||||
return Result;
|
||||
|
||||
StringLiteralError:
|
||||
|
Loading…
Reference in New Issue
Block a user